34 Commits

Author SHA1 Message Date
Andreas Jaeger
9296424e44 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.

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.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

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: I6635fbab5d4cf60be6bc317061cdac2118cebc25
2020-05-21 13:01:11 +02:00
Andreas Jaeger
0aafb1c46f Cleanup docs building
* Remove doc/source/install/conf.py, it's not used
* Update openstackdocstheme version and remove settings that are now the
  default.
* Use docs dependencies for api-ref building.

Change-Id: If37ed5bdbf6a1ef3107e66073eca9917704edee2
2020-02-23 14:16:10 +01:00
Thomas Bechtold
ac97bdbcd8 Add manila-status to man-pages list
manila-status was missing in the list of man-pages. So when building the
man-pages with:

    sphinx-build -b man doc/source doc/build/man

there is no "manila-status" in doc/build/man.

Change-Id: Ia2065af8d0ab51a0248d53b3474845ab429803d1
2019-09-12 15:30:50 +02:00
Andreas Jaeger
cef3bee057 Change PDF file name
The previously choosen PDF file name conflicts in some repos with the
project logos (badge). Thus change https://review.opendev.org/679777
renames the desired PDF name to be doc-PROJECT.pdf to allow using the
badge in PDF files.

Follow this rename.

Change-Id: I98d52f3b259cfffeb0e8ec996279ad4ff782276d
2019-09-04 06:46:25 +02:00
Thomas Bechtold
b1713e6255 Add PDF documentation build
This commit adds a new tox target to build PDF documentation.
It's a community goal[0] to have PDF docs available.

Also some minor fixes are needed for PDF:
- Only show genindex and search for HTML. Theses elements do not make
sense within PDF documents
- Do not include full config sample files. This will not work and
produces a "Dimension too large" error during the latex run.

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

Change-Id: I66b8c47d599c97e66c2ca76faa66204d5e7c9c3b
2019-08-27 14:40:04 +02:00
pengyuesheng
5c1f27f69f 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.

This will show other versions of the doc, too.

Change-Id: I2f8e4fec3aa48b91d6ab636504ecc90553a4b802
2019-07-01 15:30:47 +08:00
zhang.lei
f09d6ab951 Remove the deprecated "giturl" option
From openstackdocstheme 1.18.0, valid Git URLs can be retrieved by
openstackdocstheme[1], we do not need giturl option anymore.

[1] https://review.openstack.org/532163

Change-Id: I11d4af5807a2f95dd6e6d06ae5c5f9a9ea45e2f9
2018-03-24 23:07:21 -04:00
zhongjun
d0c695b48e Add policy documentation and sample file [10/10]
This patch adds documentation and sample
file for default policy in code feature.

Change-Id: I597971a19ec61a1bf8c991b2712ec7644b2e2693
Partial-Implements: blueprint policy-in-code
2017-12-22 01:56:44 +00:00
junboli
ee66db5dc9 Fix html_last_updated_fmt in conf.py
1. remove duplicate html_last_updated_fmt in doc/source/conf.py
   the second one cause the new added one not take effect.
2. update html_last_updated_fmt in api-ref/source/conf.py
   use the recommended '%Y-%m-%d %H:%M' data time format.

Change-Id: Ib37b8a05c88667b34438186c55b6eb3f64b64960
2017-09-09 23:01:08 +08:00
Monty Taylor
c8fada0de0
Remove vestigate HUDSON_PUBLISH_DOCS reference
This isn't actually used and is a leftover from a thing we did
seven years ago that survives today through copy-pasta.

Change-Id: I80972fec4c20bfaff82ebee56d84aac6aa65ac29
2017-09-02 08:49:00 -05:00
Jenkins
c5c7845edb Merge "doc migration: configuration reference" 2017-08-25 17:05:07 +00:00
Tom Barron
fae499cb73 doc migration: configuration reference
In accord with the OpenStack documentation migration spec [1],
this patch pulls over material from the centralized Configuration
Reference so that it will not be lost.  As indicated in the spec,
dynamic generation of this material will be left for later work.

[1] https://specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration.html

Closes-Bug: #1706181
Depends-On: Ib0fca0c16e14c05307bfc31ae50c65271b7402f1
Depends-On: Ia750cb049c0f53a234ea70ce1f2bbbb7a2aa9454

Change-Id: I7f3b584ac9907da1f07dedd26324cf4703bc7e6c
2017-08-25 13:21:08 +00:00
Javier Pena
b962dc9584 Fix man page build
"python setup.py build_sphinx -b man" was failing after the new
directory layout introduced by https://review.openstack.org/491092.

Change-Id: I7aa904c0a3b043ce4c3aa25aba25486cec07d22a
2017-08-25 09:54:56 +02:00
Tom Barron
8da4333c7f doc migration: openstackdocstheme completion
Finish the transition to the openstackdocs theme in accord
with the OpenStack manuals project migration spec [1].

Also remove the already broken autodoc build since
it generates warnings (which we treat as errors) with
the new theme setup.

[1] https://specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration.html

Partial-Bug: #1706181
Needed-By: Ieea33262101a1d2459492c1c8aaac5fe042279f6
Depends-On: Ia750cb049c0f53a234ea70ce1f2bbbb7a2aa9454

Change-Id: Ifc80fc56648cef74c85464321d1850e8c68449a0
2017-08-24 09:15:18 -04:00
Thomas Bechtold
f0f78b84c7 Allow docs build without git
When build packages from sdist tarballs, git is not available. So
allow building the documentation without git.

Change-Id: I2e65c7eb6da2f87d97b8eae9fb7411de66416739
2017-07-11 13:55:19 +02:00
Davanum Srinivas
3cc7fa6485 Fix docs failures caused by latest eventlet
Change-Id: I3aed40314d3df86716991d9815ead910bd5dceee
Closes-bug: #1674687
2017-03-21 13:29:12 -04:00
Tom Barron
24a650d0be docs: fix build failure on html_last_updated_fmt
Set this option using the expected type.

Change-Id: Icfece0f2252ea724f7ed7c84e7c17ecbf00d61a6
Closes-Bug: #1673720
2017-03-17 05:53:37 -04:00
Tom Barron
58bd5b0179 Unblock gate failure on docs build
Our form of todo extension does not work with sphinx 1.5.2.

Remove it to unblock gate: we can add todos back in later with
more current methods.  Also clean up some dangling cross-references
in the doc.

Co-Authored-By: Valeriy Ponomaryov <vponomaryov@mirantis.com>
Change-Id: If74b9e32ad2b5d8d70da60895d85588ff993797e
2017-03-03 18:21:45 +02:00
melissaml
5ddbc047e7 Use https instead of http for git.openstack.org
Change-Id: I4ec2501d64103a430fdf4eaaf9044c4ff6b92682
2017-02-21 17:20:14 +08:00
ji-xuepeng
2eefafe5b4 Removes unnecessary utf-8 coding
TrivialFix

Change-Id: I672c1bae22dd066c80c6ef449e31cde664d0be1a
2017-01-22 21:20:55 +08:00
pangliye
0a1a92cb34 Fix license and E265 errors in doc/source/conf.py
This file is not tested with our tox tests. However,
we'll fix it because we're responsible devs.

TrivialFix

Change-Id: I9aa8f422ad3e6360afdcff8ad83773f50ac5a727
2017-01-16 21:59:25 +00:00
Goutham Pacha Ravi
8de817d16e Developer Reference: Adopt the openstackdocstheme
To allow for our developer reference to be consistent with
the rest of the openstack documentation, we need to import
and render this theme on our developer reference.

This gives users a consistent experience as they may
be acquainted with the rest of the OpenStack documentation
(Admin Guide, User Guide, API Guide etc.)
before perusing the Manila developer reference.

It also provides our devref the "log-a-bug" feature so
readers may bring any mis-information to our attention.

This patch is part of a series of commits to improve
in-tree documentation.

Change-Id: I0e4686a273c5bf45c1d57764cd4c312870b06d6e
Partially-implements: bp improve-manila-developer-docs
2016-05-05 17:15:41 +00:00
Thomas Bechtold
fd9b5c0435 Fix doc build if git is absent
When building packages if git is absent, then we should not set
html_last_updated_fmt. It can still be set via the -D switch
when building with sphinx-build.

Change-Id: I02a6bcb43c8283848fb3866bb52cc4c0f50f4c92
Closes-Bug: #1552251
2016-04-13 09:36:41 +02:00
Andreas Jaeger
eeec359896 Remove unused pngmath Sphinx extension
There's no RST file that uses ".. math" and thus
the pngmath Sphinx extension is not used and can
get removed.

Change-Id: I3ea4b529025c8ac3c4092f3720124647861e6668
2016-02-28 20:44:39 +01:00
Harshada Mangesh Kakad
7fb5d6b406 Replace deprecated library function os.popen() with subprocess
os.popen() is deprecated since python 2.6. Resolved with use of
subprocess module.

Change-Id: I09f69b57b6dad10a5a6034b39d70f7ab3141bc2a
Closes-Bug: #1529836
2015-12-31 06:58:39 -08:00
Joe Gordon
8949d64085 Drop incubating theme from docs
OpenStack has dropped the incubation notion, so labeling this as an
incubated project in the docs is confusing.

Change-Id: I32714af4407a77dc532dcbd18d8fce89f3863c26
2015-05-27 15:17:22 -07:00
Jenkins
250ca24a7d Merge "Improve documentation build" 2014-09-23 04:25:19 +00:00
Andreas Jaeger
ba713b70f7 Improve documentation build
Fix some problems found during documentation build:
* Remove reference to obsolete files
* Fix warning about too short title underlining
* Include api reference in index page
* Include man page in index page
* We have no _static files, so don't set the config option for it
* Fix reference for tests.share

Change-Id: I798d1ab65184689d75c559de9bffdf5969b9f013
2014-09-22 21:29:37 +02:00
Andreas Jaeger
0c2b82cf77 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
Closes-Bug: #1368910
2014-09-13 13:11:45 +00:00
Pete Zaitcev
c2f1d714f4 Use oslosphinx and remove local copy of doc theme
A packaging review in Fedora found that we had a copy of jQuery code.
Apparently, other OpenStack projects applied a patch to remove this
code, but Manila forked Cinder code from before. The across-the-board
change in OpenStack missed Manila, because we weren't incubated yet.

This patch is almost an exact copy of Cinder patch, but not cherry-
picked because of additional changes, such as the move from oslo.sphinx
to oslosphinx.

Patch is verified to produce readable documentation.

Change-Id: Id0b57f89ae6b63b26b7f0c3fa9af5a529e92ac69
2014-09-08 09:46:23 -06:00
vponomaryov
bc2d20d3bb Removed swiftclient from dependencies
Swiftclient was in dependencies as artifact after port from cinder.
Removed as unnecessary requirement itself and related stuff.

Change-Id: I92fa249031e98a38aba721c0f3d1d7489abd562a
2014-03-03 16:30:22 +02:00
Yulia Portnova
4e2f27c11a Replaced cinder with manila 2013-09-04 15:45:32 +03:00
Yulia Portnova
dc4ce932ed Renamed cinder to manila.
Fixed setup.py, fixed bin scripts.
2013-09-02 09:59:07 +03:00
Ben Swartzlander
f99ef92c90 Initialize from cinder 2013-08-08 10:34:06 -04:00