Skip to content

Commit 75d2b65

Browse files
authored
Merge pull request #374 from pspdev/make-doxyfile-easier-to-build-locally
Make pspsdk docs easier to generate locally
2 parents 99183f0 + 6ee7cb3 commit 75d2b65

3 files changed

Lines changed: 7 additions & 29 deletions

File tree

.github/workflows/doxygen.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ jobs:
1414

1515
- name: Prepare Doxyfile
1616
run: |
17-
sed -e 's/\$(PROJECT)/PSPSDK/' \
18-
-e 's/\$(VERSION)/'`date +"%Y-%m-%d" | xargs echo -n`'/' \
19-
-e 's/\$(SRCDIR)/src/g' \
20-
-e 's/\$(GENERATE_LATEX)/NO/' \
21-
-e 's/\$(HAVE_DOT)/YES/' \
17+
sed -e 's/\$(VERSION)/'`date +"%Y-%m-%d" | xargs echo -n`'/' \
2218
-e 's/Helvetica/FreeSans/' \
2319
-i Doxyfile
2420

Doxyfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ DOXYFILE_ENCODING = UTF-8
4242
# title of most generated pages and in a few other places.
4343
# The default value is: My Project.
4444

45-
PROJECT_NAME = $(PROJECT)
45+
PROJECT_NAME = PSPSDK
4646

4747
# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
4848
# could be handy for archiving the generated documentation or if some version
@@ -174,7 +174,7 @@ FULL_PATH_NAMES = YES
174174
# will be relative from the directory where doxygen is started.
175175
# This tag requires that the tag FULL_PATH_NAMES is set to YES.
176176

177-
STRIP_FROM_PATH = $(SRCDIR)
177+
STRIP_FROM_PATH = src
178178

179179
# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the
180180
# path mentioned in the documentation of a class, which tells the reader which
@@ -183,7 +183,7 @@ STRIP_FROM_PATH = $(SRCDIR)
183183
# specify the list of include paths that are normally passed to the compiler
184184
# using the -I flag.
185185

186-
STRIP_FROM_INC_PATH = $(SRCDIR)
186+
STRIP_FROM_INC_PATH = src
187187

188188
# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but
189189
# less readable) file names. This can be useful is your file systems doesn't
@@ -1020,7 +1020,7 @@ EXCLUDE_SYMBOLS =
10201020
# that contain example code fragments that are included (see the \include
10211021
# command).
10221022

1023-
EXAMPLE_PATH = $(SRCDIR)/samples
1023+
EXAMPLE_PATH = src/samples
10241024

10251025
# If the value of the EXAMPLE_PATH tag contains directories, you can use the
10261026
# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and
@@ -1911,7 +1911,7 @@ EXTRA_SEARCH_MAPPINGS =
19111911
# If the GENERATE_LATEX tag is set to YES, doxygen will generate LaTeX output.
19121912
# The default value is: YES.
19131913

1914-
GENERATE_LATEX = $(GENERATE_LATEX)
1914+
GENERATE_LATEX = NO
19151915

19161916
# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a
19171917
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
@@ -2457,7 +2457,7 @@ HIDE_UNDOC_RELATIONS = YES
24572457
# set to NO
24582458
# The default value is: YES.
24592459

2460-
HAVE_DOT = $(HAVE_DOT)
2460+
HAVE_DOT = YES
24612461

24622462
# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is allowed
24632463
# to run in parallel. When set to 0 doxygen will base this on the number of

m4/ax_prog_doxygen.m4

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,6 @@ m4_define([DX_loop], m4_dquote(m4_if(m4_eval(3 < m4_count($@)), 1,
266266
[])))dnl
267267
268268
# Environment variables used inside doxygen.cfg:
269-
DX_ENV_APPEND(SRCDIR, $srcdir)
270-
DX_ENV_APPEND(PROJECT, $DX_PROJECT)
271269
DX_ENV_APPEND(VERSION, $PACKAGE_VERSION)
272270
273271
# Doxygen itself:
@@ -278,15 +276,6 @@ DX_ARG_ABLE(doc, [generate any doxygen documentation],
278276
DX_REQUIRE_PROG([DX_PERL], perl)],
279277
[DX_ENV_APPEND(PERL_PATH, $DX_PERL)])
280278
281-
# Dot for graphics:
282-
DX_ARG_ABLE(dot, [generate graphics for doxygen documentation],
283-
[DX_CHECK_DEPEND(doc, 1)],
284-
[DX_CLEAR_DEPEND(doc, 1)],
285-
[DX_REQUIRE_PROG([DX_DOT], dot)],
286-
[DX_ENV_APPEND(HAVE_DOT, YES)
287-
DX_ENV_APPEND(DOT_PATH, [`DX_DIRNAME_EXPR($DX_DOT)`])],
288-
[DX_ENV_APPEND(HAVE_DOT, NO)])
289-
290279
# Man pages generation:
291280
DX_ARG_ABLE(man, [generate doxygen manual pages],
292281
[DX_CHECK_DEPEND(doc, 1)],
@@ -354,13 +343,6 @@ DX_ARG_ABLE(pdf, [generate doxygen PDF documentation],
354343
DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex)
355344
DX_REQUIRE_PROG([DX_EGREP], egrep)])
356345
357-
# LaTeX generation for PS and/or PDF:
358-
if DX_TEST_FEATURE(ps) || DX_TEST_FEATURE(pdf); then
359-
DX_ENV_APPEND(GENERATE_LATEX, YES)
360-
else
361-
DX_ENV_APPEND(GENERATE_LATEX, NO)
362-
fi
363-
364346
# Paper size for PS and/or PDF:
365347
AC_ARG_VAR(DOXYGEN_PAPER_SIZE,
366348
[a4wide (default), a4, letter, legal or executive])

0 commit comments

Comments
 (0)