Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ev3-toolbox-matlab
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mindstorms
ev3-toolbox-matlab
Commits
fcf7a4a6
Commit
fcf7a4a6
authored
8 years ago
by
Tim Stadtmann
Browse files
Options
Downloads
Patches
Plain Diff
Automate pre/postprocessing when building doc
parent
7cbd6013
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/Makefile
+6
-2
6 additions, 2 deletions
docs/Makefile
docs/process.py
+2
-2
2 additions, 2 deletions
docs/process.py
with
8 additions
and
4 deletions
docs/Makefile
+
6
−
2
View file @
fcf7a4a6
...
@@ -50,8 +50,12 @@ clean:
...
@@ -50,8 +50,12 @@ clean:
.PHONY
:
html
.PHONY
:
html
html
:
html
:
@
echo
"Preprocessing..."
@
python3
-c
"import process; process.preprocess()"
$(
SPHINXBUILD
)
-b
html
$(
ALLSPHINXOPTS
)
$(
BUILDDIR
)
/html
$(
SPHINXBUILD
)
-b
html
$(
ALLSPHINXOPTS
)
$(
BUILDDIR
)
/html
@
echo
@
echo
@
echo
"Postprocessing..."
@
python3
-c
"import process; process.postprocess()"
@
echo
"Build finished. The HTML pages are in
$(
BUILDDIR
)
/html."
@
echo
"Build finished. The HTML pages are in
$(
BUILDDIR
)
/html."
.PHONY
:
dirhtml
.PHONY
:
dirhtml
...
...
This diff is collapsed.
Click to expand it.
docs/process.py
+
2
−
2
View file @
fcf7a4a6
...
@@ -17,7 +17,7 @@ def preprocess():
...
@@ -17,7 +17,7 @@ def preprocess():
n_files
=
len
(
files
)
n_files
=
len
(
files
)
for
n
,
file_name
in
enumerate
(
files
):
for
n
,
file_name
in
enumerate
(
files
):
print
(
"
Preprocessing file {0} [{1}|{2}]
"
.
format
(
file_name
,
n
+
1
,
n_files
))
#
print("Preprocessing file {0} [{1}|{2}]".format(file_name, n+1, n_files))
try
:
try
:
fh
,
abs_path
=
mkstemp
()
fh
,
abs_path
=
mkstemp
()
with
open
(
code_dir
+
"
/
"
+
file_name
,
'
r
'
)
as
f
:
with
open
(
code_dir
+
"
/
"
+
file_name
,
'
r
'
)
as
f
:
...
@@ -52,7 +52,7 @@ def postprocess():
...
@@ -52,7 +52,7 @@ def postprocess():
n_files
=
len
(
files
)
n_files
=
len
(
files
)
for
n
,
file_name
in
enumerate
(
files
):
for
n
,
file_name
in
enumerate
(
files
):
print
(
"
Postprocessing file {0} [{1}|{2}]
"
.
format
(
file_name
,
n
+
1
,
n_files
))
#
print("Postprocessing file {0} [{1}|{2}]".format(file_name, n+1, n_files))
try
:
try
:
fh
,
abs_path
=
mkstemp
()
fh
,
abs_path
=
mkstemp
()
with
open
(
code_dir
+
"
/
"
+
file_name
,
'
r
'
)
as
f
:
with
open
(
code_dir
+
"
/
"
+
file_name
,
'
r
'
)
as
f
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment