-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: Use read the docs theme on website (#408)
This commit updates the website theme from "sphinx_bootstrap_theme" to "sphinx_rtd_theme". It also include documentation for the command line interface and the release process.
- Loading branch information
Showing
12 changed files
with
95 additions
and
148 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Command Line Interface | ||
====================== | ||
|
||
.. argparse:: | ||
:module: wordcloud.wordcloud_cli | ||
:func: make_parser | ||
:prog: wordcloud_cli.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,33 @@ | ||
.. raw:: html | ||
|
||
<div class="jumbotron"> | ||
<div class="container"> | ||
<h1>More word-clouds!</h1> | ||
<p>Here you find instructions on how to create wordclouds with my Python wordcloud project. With the new and revamped interface, this is easier than ever. | ||
Compared to other wordclouds, my algorithm has the advantage of | ||
<ul> | ||
<li>filling all available space. | ||
<li>being able to use arbitraty masks. | ||
<li>having a stupid simple algorithm (with an efficient implementation) that can be easily modified. | ||
<li>being in Python ;) | ||
</ul> | ||
You can see some examples below. | ||
</p> | ||
<p><a href="https://github.com/amueller/word_cloud" class="btn btn-primary btn-lg" role="button">Github repository</a></p> | ||
</div> | ||
</div> | ||
|
||
<div class="container"> | ||
<!-- Example row of columns --> | ||
<div class="row"> | ||
<div class="col-xs-3 col-md-3"> | ||
<a href="auto_examples/masked.html" class="thumbnail"> | ||
<img src="_images/sphx_glr_masked_001.png" alt="..."> | ||
</a> | ||
</div> | ||
<div class="col-xs-3 col-md-3"> | ||
<a href="auto_examples/colored.html" class="thumbnail"> | ||
<img src="_images/sphx_glr_colored_001.png" alt="..."> | ||
</a> | ||
</div> | ||
<div class="col-xs-3 col-md-3"> | ||
<a href="auto_examples/a_new_hope.html" class="thumbnail"> | ||
<img src="_images/sphx_glr_a_new_hope_001.png" alt="..."> | ||
</a> | ||
</div> | ||
<div class="col-xs-3 col-md-3"> | ||
<a href="auto_examples/simple.html" class="thumbnail"> | ||
<img src="_images/sphx_glr_simple_001.png" alt="..."> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
WordCloud for Python documentation | ||
================================== | ||
|
||
Here you find instructions on how to create wordclouds with my Python wordcloud project. | ||
Compared to other wordclouds, my algorithm has the advantage of | ||
|
||
* filling all available space. | ||
* being able to use arbitraty masks. | ||
* having a stupid simple algorithm (with an efficient implementation) that can be easily modified. | ||
* being in Python | ||
|
||
Check out the :ref:`example_gallery`. | ||
|
||
The code of the project is on Github: `word_cloud <https://github.com/amueller/word_cloud>`_ | ||
|
||
.. figure:: images/a_new_hope.png | ||
:width: 300px | ||
:target: auto_examples/a_new_hope.html | ||
:align: center | ||
|
||
.. toctree:: | ||
:hidden: | ||
|
||
:caption: User Documentation | ||
|
||
references | ||
cli | ||
auto_examples/index | ||
references.rst | ||
|
||
.. toctree:: | ||
:hidden: | ||
:caption: Contributor Documentation | ||
|
||
make_a_release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
================ | ||
Making a release | ||
================ | ||
|
||
This document guides a contributor through creating a release of the wordcloud | ||
python packages. | ||
|
||
A core developer should use the following steps to create a release of | ||
**wordcloud**. | ||
|
||
1. Make sure that all CI tests are passing: `AppVeyor`_, `CircleCI`_ and `Travis CI`_. | ||
|
||
2. Tag the release. For version *X.Y.Z*:: | ||
|
||
release=X.Y.Z | ||
git tag -s -m "wordcloud ${release}" ${release} origin/master | ||
|
||
3. Push the tag:: | ||
|
||
git push origin ${release} | ||
|
||
.. note:: This will trigger builds on each CI services and automatically upload the wheels \ | ||
and source distribution on `PyPI`_. | ||
|
||
4. Check the status of the builds on `AppVeyor`_, `CircleCI`_ and `Travis CI`_. | ||
|
||
5. Once the builds are completed, check that the distributions are available on `PyPI`_. | ||
|
||
6. Finally, make sure the package can be installed:: | ||
|
||
mkvirtualenv test-install | ||
pip install wordcloud | ||
python -c "import wordcloud;print(wordcloud.__version__)" | ||
deactivate | ||
rmvirtualenv test-install | ||
|
||
|
||
.. _AppVeyor: https://ci.appveyor.com/project/amueller/word-cloud/history | ||
.. _CircleCI: https://circleci.com/gh/amueller/word_cloud | ||
.. _Travis CI: https://travis-ci.org/amueller/word_cloud/pull_requests | ||
|
||
.. _PyPI: https://pypi.org/project/wordcloud |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
numpydoc | ||
sphinx | ||
sphinx_bootstrap_theme | ||
sphinx_rtd_theme | ||
sphinx_gallery | ||
sphinx-argparse | ||
|
||
# | ||
# Example requirements | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.. _example_gallery: | ||
|
||
Gallery of Examples | ||
=================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters