Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scikit-learn
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Ian Johnson
scikit-learn
Commits
03cb912c
Commit
03cb912c
authored
10 years ago
by
Lars Buitinck
Browse files
Options
Downloads
Patches
Plain Diff
DOC run optipng before uploading website
Conflicts: doc/Makefile
parent
4c6227f4
Loading
Loading
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/Makefile
+7
-1
7 additions, 1 deletion
doc/Makefile
doc/README
+9
-1
9 additions, 1 deletion
doc/README
with
16 additions
and
2 deletions
doc/Makefile
+
7
−
1
View file @
03cb912c
...
...
@@ -12,7 +12,7 @@ PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter
=
-D
latex_paper_size
=
letter
ALLSPHINXOPTS
=
-d
$(
BUILDDIR
)
/doctrees
$(
PAPEROPT_
$(
PAPER
))
$(
SPHINXOPTS
)
.
.PHONY
:
help clean html dirhtml pickle json
htmlhelp qthelp
latex latexpdf changes linkcheck doctest
.PHONY
:
help clean html dirhtml pickle json latex latexpdf changes linkcheck doctest
optipng
all
:
html-noplot
...
...
@@ -107,3 +107,9 @@ doctest:
download-data
:
python
-c
"from sklearn.datasets.lfw import check_fetch_lfw; check_fetch_lfw()"
# Optimize PNG files. Needs OptiPNG. Change the -P argument to the number of
# cores you have available, so -P 64 if you have a real computer ;)
optipng
:
find _build auto_examples
*
/generated
-name
'*.png'
-print0
\
| xargs
-0
-n
1
-P
4 optipng
-o10
This diff is collapsed.
Click to expand it.
doc/README
+
9
−
1
View file @
03cb912c
...
...
@@ -21,13 +21,21 @@ To build the PDF manual, run
Upload the generated doc to sourceforge
---------------------------------------
First of, generate
the html
documentation::
First of
f
, generate
HTML
documentation::
make html
This should create a directory _build/html/stable with the documentation in
html format.
Next, make sure you have the PNG optimizer OptiPNG installed.
The PNG files generated by Matplotlib tend to be ~20% too big, and they're
costing us bandwidth. Then issue::
make optipng
This may take some time. If you have a big machine at your disposal,
check the ``Makefile``; it has a hint on how to speed up this target.
Now can upload the generated HTML documentation using scp or some other SFTP
clients.
...
...
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