Commit Graph

25 Commits

Author SHA1 Message Date
wangjiaqi07 fddf48c9c4 remove unicode from code
Change-Id: I56e72f7bb4a6829ac9f96ec418b3359ae6cd8e3f
2022-08-25 09:34:35 +08:00
melissaml c4d9ae77a7 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Set openstackdocs_auto_name to use 'project' as name.

Change pygments_style to 'native' since old theme version always
used 'native' and the theme now respects the setting and using 'sphinx'
can lead to some strange rendering.

openstackdocstheme renames some variables, so follow the
renames before the next release removes them. A couple of variables
are also not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I5db2dc63ea51f0005aa1244b5b9c692ec23ce314
2020-05-22 17:15:04 +08:00
Andreas Jaeger 20a434c862 Cleanup Python 2.7 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove ancient sections from setup.cfg
- Update requirements
- Remove unused import from conf.py

Change-Id: I87261d38992dedd87709ad8beff0bb533064e118
2020-03-27 17:35:47 +01:00
pengyuesheng 9523029e02 Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: I432ae5415b9ab8ca7247fb5fb2a8b6e1819029ba
2019-11-15 02:47:26 +00:00
Duc Truong d8df1f8c51 Add sphinx extension to document policies/profiles
This change adds a sphinx extention to build sections of the policy and
profile documentation from source code.

- Add new extension
- Modify contributor documentation for policies to show spec fields
  from source code
- Modify user documentation for policies and profiles to show properties
  from source code
- Modify user documentation for policies and profiles to include
  samples extracted from examples directory
- Update tox to run pep8 against sphinx extension

Change-Id: I32f68867d14c3288385dbdf3b4df14e8ca2fd01f
2018-10-24 16:59:06 +00:00
Duc Truong 452d71c7cd Fix doc format errors
This fixes all the documentation formatting errors detected by sphinx
when running the docs tox environment.

The change in conf.py is needed to suppress the unknown option warning
documented in [1] and [2]

[1] https://groups.google.com/forum/#!topic/sphinx-users/6F_EJUEA2f8
[2] https://github.com/sphinx-doc/sphinx/issues/2229

Change-Id: Ib209fa9db7d2d896a34c54919afa396044ad29b7
2018-07-12 17:44:36 +00:00
Dai Dang Van 4928a74a7d Implement policy in code - reno and doc (end)
- Add release note for supporting policy in code [1].
- Add documentation about policy file.

[1] https://governance.openstack.org/tc/goals/queens/policy-in-code.html

Change-Id: I6c05af32240f4a7484043a7da38d346fcffd04f3
Co-authored-By: Hieu LE <hieulq@vn.fujitsu.com>
2017-10-20 09:59:23 +00:00
tengqm b81995045b Fix some boring warnings about conf.py pep8
This patch fixes the problems when running flake8 against conf.py file.

Change-Id: I5296a51bb7b9f7e3a9050e98eba673149e653e7c
2017-09-06 04:02:11 -04:00
rajat29 81f33f806a Switch from oslosphinx to openstackdocstheme
As part of the docs migration work[0] for Pike we need to switch to use
the openstackdocstheme.

[0]https://review.openstack.org/#/c/472275/

Change-Id: Ia8551b45c1d7b4d67368e493e143c3893d07df61
2017-07-13 05:20:17 +00:00
melissaml a97a604253 Use https instead of http for git.openstack.org
Trivialfix

Change-Id: I6f88ebfa5d9b833f14b551b393755764d90e4177
2017-02-08 17:23:14 +08:00
tengqm f8129c6a88 Fix various problems in doc tree
This patch fixes several problems in the doc tree:

- The scaling and heat integration subsections should be removed
  from
  tutorial, which is meant to be a quick introduction to senlin
  operations.

- Moved some overview text from the global index into a dedicated
  subsection for the autoscaling section.

- Fixed some problems related to format code blocks.

- Fixed the git command problem in the conf file.

Change-Id: Ice538cf65deb241d745f6793200bf09342ae227d
2017-01-18 23:57:18 -05:00
miaohb 7fb2a984e7 Remove unnecessary coding format in files
The line of "coding utf8" is added by some editors automatically.
It's useless, can be removed.

Change-Id: I76a3fc09ab77ce877d7143acbc9342480e9a3878
2017-01-04 17:50:34 +08:00
tengqm ea92f147ae Fix some pep8 errors
There some pep8 errors outside the main code directory. These files are
examined each time we run 'flake8' and the problems therein will surface
in these occasions. This patch fixes such problems.

Change-Id: If19bbb4d5377549ad5ba5af438b35941ff1c81c0
2016-10-11 04:34:04 -04:00
pawnesh.kumar c0e8ca7c3b Fix the incorrect version and release details
Change-Id: I16b7bffe0691d3636f133a1bc0dd7104ba9edb5f
2016-10-08 01:11:45 +05:30
jonnary dc7904eb97 Fix error in conf.py
Fix error in conf.py

Change-Id: Ic384ee96a95bd8314dadb5027610b8f834946fa2
2016-09-20 10:58:57 +08:00
tengqm 981d9ab126 Documentation for builtin policies
We need to provide some detailed reference documentation for builtin
policies. These documentation can then be referenced from other
document.

Change-Id: Iba739a4dc0e0fd16fbcf2406aecb3053f0fde76d
2016-07-28 02:00:39 -04:00
ZhiQiang Fan e533635e47 [Trivial] Remove executable privilege of doc/source/conf.py
It is a configuration file, rather than a script.

Change-Id: Iae0428eb089fdc929282eefb440aeff107ba8666
2016-07-25 05:39:26 -04:00
tengqm cccdf92f14 Add docs for configuration options
This patch adds documentation for the senlin configuration options.

Change-Id: I55eabc17ebbacfb01bfb07c37cee6f971a993b5c
2016-07-23 08:11:27 -04:00
tengqm 897734b835 Fix warnings in current documentation tree
This patch fixes two problems: 1) the graphviz package installation
should be a requirement so that the flowchart can be built; 2) the
indentation in action.rst is causing doctools to misunderstand its
grammar.

Change-Id: Ib7189316d890d9bc65f5344eba17e15ee52b8f62
2016-04-14 22:05:38 -04:00
caoyue 4ca80795b0 Replace deprecated library function os.popen() with subprocess
os.popen() is deprecated since python 2.6. Resolved with use of
subprocess module.

Change-Id: Ifa5f6bbfabf2d5ebfdbee21920aa12c0a8e30517
Closes-Bug: #1529836
2016-01-13 19:32:32 +08:00
Andreas Jaeger ccfebac43b Fix "report a bug" launchpad project
For docs set the launchpad project users report bugs
against to "senlin". Users can report bugs
using the "bug icon" that will
directly link to the launchpad project, it currently goes to
"openstack-manuals" which is wrong for this content.

This variable is used by openstackdocstheme 1.2.6.

Also, update comments for the variables passed to
openstackdocstheme.

Change-Id: I15d8cbc4e59b28351f21026f60b1131083540112
Related-Bug: #1524476
2015-12-11 17:14:31 +01:00
tengqm 7d039df937 Fix PEP8 error in doc source file
This wasn't checked during regular tox jobs.

Change-Id: I89d59bc1cf499b35cf3ca270a0f658ff60923869
2015-11-25 00:19:54 -05:00
tengqm d66352df89 Update doc environ to use OpenStack docs theme
This patch makes senlin conformant to the community wide convention on
building docs.

Change-Id: I0edaacd01f6f75377c2a8a7fd43d7d6c809caf5b
2015-11-21 23:09:12 -05:00
tengqm ae47fd5de3 Flake8 fix for doc source conf.py
This patch fixes the pep8 errors found in doc/source/conf.py.

Change-Id: I47567f1a08554d17077daecce11734b108f9a4ea
2015-07-03 04:29:02 -04:00
tengqm 990ee05b73 Fixing initial PEP8 and python check errors
Note the locale part is temporarily disabled.  Need to be re-enabled
some time in future.

Change-Id: I3b2e0a2f40a171266ec76ad0d3cb4939e48d7ceb
2015-03-18 15:27:08 +08:00