22 Commits

Author SHA1 Message Date
LiZekun
6763c87d68 remove unicode from code
Change-Id: I4e325e9775f07a9052b92be33724cc794d8bfdcb
2022-01-10 17:10:15 +08:00
Ghanshyam Mann
8809c3405b Update IRC network to OFTC
Change-Id: I8a920e55c2c4b1c2c4d0f1f6e1f32fbbd7f77163
2021-05-31 15:05:41 -05:00
Andreas Jaeger
4d84a3b496 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.

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.

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.

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

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.

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

Change-Id: I8e6c4b1d09e5f56b505c6006ea048baf896444c3
2020-05-22 17:27:39 +00:00
Masayuki Igawa
3735d2d693 Add PDF documentation build
This commit adds PDF documentation build target 'pdf-docs' that will
build PDF versions of our docs.

This is one of the Train community goals:

 https://governance.openstack.org/tc/goals/selected/train/pdf-doc-generation.html

Change-Id: Iae6bc9ae92fe61385c424923eaad35dc449880e9
Story: #2006070
Task: #35464
2020-05-19 08:13:53 +02:00
Ghanshyam Mann
7b7ba01d5b [ussuri][goal] Update contributor documentation
This patch updates/adds the contributor documentation to follow
the guidelines of the Ussuri cycle community goal[1].

[1] https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html
Story: #2007236
Task: #38554

Change-Id: Ia46983955ddc183824d9088c1a6c3e307af188c3
2020-04-22 14:06:03 +00:00
Akihiro Motoki
c4cdad7380 rearrange existing documentation to fit the new standard layout
Some minor formatting issues caused by openstackdocstheme adoption
in README.rst and HACKING.rst.

Note that the install instruction is part of README, so it is not split
out into a separate rst file (as suggested in the doc-migration spec).

Change-Id: Iac58eeb15921e9225a461e3b5b2f3bd7ac99f415
2017-07-12 12:35:21 +00:00
Akihiro Motoki
39271f9300 Switch from oslosphinx to openstackdocstheme
Change-Id: I4ab08cd976dda6b9deb5116a7ab9d3da91fe69da
2017-07-12 12:35:18 +00:00
Andreas Jaeger
bce1291abd Stop using intersphinx
Remove intersphinx from the docs build as it triggers network calls that
occasionally fail, and we don't really use intersphinx (links other
sphinx documents out on the internet)

This also removes the requirement for internet access during docs build.

This can cause docs jobs to fail if the project errors out on
warnings.

Change-Id: I71e941e2a639641a662a163c682eb86d51de42fb
Related-Bug: #1368910
2014-09-13 09:56:13 +02:00
Joe Gordon
3ceeb134d3 Add link to readme at bottom of docs.openstack.org/developer/hacking/
The readme has important information so we want to make it discoverable
at http://docs.openstack.org/developer/hacking/
Remove 'Further Reading' section in HACKING.rst since it's already in
the README.rst which is now linked at the bottom of
http://docs.openstack.org/developer/hacking/

Change-Id: I45c51494382283003f61fc416953a576efa7db60
2014-05-06 12:25:06 -07:00
Joe Gordon
5d7d7342d9 Cleanup hacking doc generation
* Delete old layout files now that we use oslosphinx
* Add fail to build on warning
* Add 'tox -edoc' command (just like nova-specs, keystone, heat etc)

Change-Id: I316c4bb3fe7036ecd8a0fb19d7348c307c0afebe
2014-04-25 14:13:33 -07:00
Dirk Mueller
f487cff435 Switch over to oslosphinx
oslosphinx is the new name of oslo.sphinx

Change-Id: I70ac51fcd7148832f94b7aae5049893bc650846d
Closes-Bug: #1277168
2014-02-14 18:52:42 +01:00
Joe Gordon
9d4ccbdd35 Move hacking guide to root directory
The hacking guide is in the root directory of every project as
HACKING.rst, except for hacking itself.  Keep the hacking guide as the
index to the docs, but move the file to the root directory.

Change-Id: If128dfc004db2b7427f987ea8a9f643b6c653ce8
2014-01-15 13:53:45 -05:00
Jenkins
abbd89e5ca Merge "checking for metaclass to be Python 3.x compatible" 2014-01-14 19:06:12 +00:00
Joe Gordon
024c3f104f Add H904: don't wrap lines using a backslash
Hacking originally had a soft preference for () versus \ based line
continuation, but this has lead to unnecessary review churn. So in order
to reduce churn be stricter and don't allow \ based line continuation.

Related ML thread
http://lists.openstack.org/pipermail/openstack-dev/2013-November/019024.html

Change-Id: I010623344bc2c4bf86051f86a96afb3611c90342
2014-01-06 12:57:19 -08:00
fujioka yuuichi
bb09c2d32d checking for metaclass to be Python 3.x compatible
The way to using metaclass has changed in Python3.(H236)

Python 2.7 way:

class Foo(object):
  __metaclass__ = FooMeta

Python 3 way:

class Foo(object, metaclass=FooMeta):
  ...

The six.add_metaclass() decorator allows us to use one syntax that
works for both Python 2.7 and Python 3.

Change-Id: I24a00d9e59ffdd9abf4ccf3919737bdb079819eb
Related-Bug: #1236648
2013-12-18 11:33:01 +09:00
Julien Danjou
0ffdb453f3 Add a check for file with only comments
That should catch things like __init__.py files with only license
headers inside.

Change-Id: I6a2078f6264ef252d4eb431c8df33db0913ba3bf
2013-12-09 15:35:33 +01:00
Lei Zhang
d04ad30e09 Fix the escape character
Change-Id: I734926b5af26544d6a8297c80e0c31b9fee9322c
2013-11-12 21:42:29 +08:00
Joe Gordon
9d5ba3861e Remove vim modeline sample
Don't include a vim modeline sample in the import ordering section, as
import ordering is not related to vim modelines.

Change-Id: Ibd25c109967b939a0410ddbc332c17b011b21ab9
2013-11-11 10:52:57 -08:00
Jenkins
b7b477520e Merge "Replace OpenStack LLC with OpenStack Foundation" 2013-10-15 06:02:40 +00:00
Monty Taylor
9c62571b9f Move the hacking guidelines to sphinx docs
Step one in publishing them to an actual place.

Change-Id: I579e7c889f3addc2cd40bce0c584bbc70bf435e2
2013-09-20 16:09:39 -07:00
ZhiQiang Fan
fd16356b90 Replace OpenStack LLC with OpenStack Foundation
Change-Id: I8406a6aa3a0a11c56af1f5f8f2921c0463a55e2b
Fixes-Bug: #1214176
2013-09-20 02:28:38 +08:00
Monty Taylor
4e90f08824 Make hacking a flake8 plugin. 2013-03-18 12:19:25 -07:00