Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
c3aad56a
Commit
c3aad56a
authored
14 years ago
by
Marco Biasini
Browse files
Options
Downloads
Patches
Plain Diff
added option to build json'y documentation
parent
74a84030
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/make.py
+9
-4
9 additions, 4 deletions
doc/make.py
with
9 additions
and
4 deletions
doc/make.py
+
9
−
4
View file @
c3aad56a
...
...
@@ -67,7 +67,9 @@ def _CollectRstDocs(outdir, dirname, fnames):
def
ParseArgs
():
parser
=
OptionParser
(
"
usage: ost make.py [options]
"
)
parser
.
add_option
(
"
-l
"
,
"
--linkcheck
"
,
action
=
"
store_true
"
,
default
=
False
,
dest
=
"
linkcheck
"
,
help
=
"
validate all external links
"
)
parser
.
add_option
(
"
-b
"
,
"
--build-html
"
,
action
=
"
store_true
"
,
default
=
False
,
dest
=
"
html
"
,
help
=
"
build html documentation
"
)
parser
.
add_option
(
"
-b
"
,
"
--build-html
"
,
action
=
"
store_true
"
,
default
=
False
,
dest
=
"
html
"
,
help
=
"
build html documentation
"
)
parser
.
add_option
(
'
-j
'
,
'
--build-json
'
,
action
=
'
store_true
'
,
default
=
False
)
parser
.
add_option
(
"
-d
"
,
"
--doctest
"
,
action
=
"
store_true
"
,
default
=
False
,
dest
=
"
doctest
"
,
help
=
"
run all test
"
)
parser
.
add_option
(
"
-q
"
,
"
--quiet
"
,
action
=
"
store_true
"
,
default
=
False
,
dest
=
"
quiet
"
,
help
=
"
run all test
"
)
return
parser
.
parse_args
()
...
...
@@ -88,10 +90,13 @@ sphinx_bin=settings.Locate(['sphinx-build', 'sphinx-build-2.6'])
if
opts
.
html
:
os
.
system
(
'
%s %s -b html -c %s %s %s
'
%
(
sphinx_bin
,
opt_str
,
'
doc/conf
'
,
'
doc/source
'
,
'
doc/build
'
))
'
doc/build
/html
'
))
if
opts
.
doctest
:
os
.
system
(
'
%s %s -b doctest -c %s %s %s
'
%
(
sphinx_bin
,
opt_str
,
'
doc/conf
'
,
'
doc/source
'
,
'
doc/build
'
))
'
doc/build/doctest
'
))
if
opts
.
build_json
:
os
.
system
(
'
%s %s -b json -c %s %s %s
'
%
(
sphinx_bin
,
opt_str
,
'
doc/conf
'
,
'
doc/source
'
,
'
doc/build/json
'
))
if
opts
.
linkcheck
:
os
.
system
(
'
%s %s -b linkcheck -c %s %s %s
'
%
(
sphinx_bin
,
opt_str
,
'
doc/conf
'
,
'
doc/source
'
,
'
doc/build
'
))
'
doc/build
/check
'
))
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