52 Commits

Author SHA1 Message Date
Akihiro Motoki
383a5bec4b Reorganize directory structure
Currently for both upstream-training and training-guide directory
slides are stored in the subdirectories of landing web pages.
It is not easy to capture the directory structure and this requires
Sphinx conf file to have unnecessary excluded entries.

This commits reorganizes each directory to the following structure.
It follows the convention in the documentation project.

doc/upstream-training:

(previous)
  +-- README.rst
  +-- website RST files
  +-- conf.py (for website)
  +-- build/
  +-- source/
       +-- slide RST files
       +-- conf.py (for slides)
       +-- _assets/
       +-- _static/
       +-- locale/

(new)
  +-- README.rst
  +-- build/
  +-- source/
       +-- website/
       |    +-- website RST files
       |    +-- conf.py (for website)
       |    +-- _assets/
       +-- slides/
       |    +-- slide RST files
       |    +-- conf.py (for slides)
       |    +-- _assets/
       |    +-- _static/
       +-- locales/

training-guide directory is reorganized similarly.
training-guide _assets/README has been removed as it is used.

Also updates tox.ini to share target command definitions.
We do not need to have same things in many places.

Note that this commit does not change the build document paths.

Change-Id: I5a21f170c06d8f71f1f2d0df354e6d6280cb29d0
2016-10-09 03:35:30 +00:00
Akihiro Motoki
5e0f091688 [training] Fix warnings in training guides
Use toctree in slide-index.rst to ensure all documents are listed
in toctree to avoid sphinx warnings.

Exclude associate-guides from HTML build. Also remove 'source' from
doc/training-guides/conf.py as it does not exists in doc/training-guide.

Ensure associate-guide/notes files are in toctree to avoid sphinx warnings.
These files are referred to by including them, so hidden toctrees are used.

Also specifies sphinx-build -W option to detect warnings.

Change-Id: I298202e3304d02f362cc4bf9cc58686857040fd8
2016-10-05 17:23:50 +09:00
Akihiro Motoki
82731ddab0 Fix warnings of upstream training HTML pages
Most warnings are "document isn't included in any toctree".
This is because documents are not listed in any toctree.
In the upstream training document, explicit toctree looks unnecessary,
so this commit adds a hidden toctree to cover all unlisted documents.
It makes these documents reachable from standard navigation (prev/next).

doc/upstream-training/README.rst is not intended to link from the document.
Add README.rst to exclude_patterns in conf.py.

Also specifies sphinx-build -W option to detect warnings.

Change-Id: I42750cde20a35342dce7857e275f7fa27211236b
2016-10-05 17:20:00 +09:00
Andreas Jaeger
962283e8dd Fix translation AFS publishing
Add marker correctly, we cannot redirect in tox.ini, thus need a shell
script to do the redirects.

This adds a new shell script to just add a marker call add-marker.sh

Change-Id: I76cd140ad5ac1fb2163a11ab760134256b04f8dd
2016-10-03 16:30:00 +02:00
Akihiro Motoki
9fab9582c2 Fix warnings of upstream training slides
Most warnings can be addressed by using toctree directive
and there is no reason to use toctree directive.

In addition, sections in slide-index.rst has been reorganized
to match the sections in index.rst.
The sections in index.rst looks better.

Also specify -W option to sphinx-build so that the gate job
can detect warnings.

Change-Id: I70ca7c2b61cbbb48fd0ea5e6cc0d68aaa09b6d87
2016-10-03 16:57:22 +09:00
Andreas Jaeger
720dba044e Add root-marker for publishing
For new infra publishing setup, each guide needs have a .root-marker
file in its top-level directory. Add the marker for each guide.

Change-Id: I46026a90d148b28c4e4b80177c912b0954413aef
2016-10-02 18:41:16 +02:00
Andreas Jaeger
546083d1b7 Do not publish doctrees
Doctrees are build artefacts thta do not need to be published, place
them in separete directories so that they won't get published.

Change-Id: I8839f08d2e85ccb751d354be5f48bdfd95b886e2
2016-08-29 10:28:29 +02:00
Matjaz Pancur
4e5cf0b1d3 Cleanup tox.ini for Upstream training
This also enables publishing of git.rst.

Change-Id: Id4c25517de846031d8a9201be144e7031db4bdb7
2016-03-31 18:14:21 +02:00
Mike Perez
3ffa49c7c5 Adding tool chain documentation for IRC
This adds documentation for using IRC with Linux and Mac OS.

Change-Id: Ic41e7040d6980fceb07e9bdba84ab74dae40ff90
2016-03-22 16:24:12 -07:00
KATO Tomoyuki
3a2ecc4fe3 Create upstream training archives
Also, clean up langing page

Change-Id: I912e7ae5a8fe11a6d21d59213cc159e010f91ede
2016-01-31 05:53:46 +00:00
KATO Tomoyuki
1d6d58de68 Remove unused tox environment
Change-Id: I71d08c64547305b7bb630e8973bd141419cab5e0
2016-01-26 09:27:56 +09:00
Jenkins
7715158909 Merge "Remove generatelabs and its settings in tox.ini" 2016-01-24 23:47:11 +00:00
Ian Y. Choi
cbf8238caa Remove generatelabs and its settings in tox.ini
generatelabs file was used to created for training-labs
scripts, and is not used in this repository anymore.
Also, updated tox.ini to delete generatelabs references

Change-Id: I86894506c62e2466734194f62a28811e5c2c8c4e
2016-01-22 10:32:46 +09:00
Ian Y. Choi
763956c4b9 [training-guides] Created a landing page
training-guides did not have any landing page,
made difficult users to start reading the guide.
This commit adds a landing page for training-guides.
The previous landing page with slide format is moved from
index.rst to slide-index.rst.

Closes-Bug: #1535393
Change-Id: I8b43349679239e511173180777b27c3b18b518fb
2016-01-22 09:08:05 +09:00
KATO Tomoyuki
5cc99662ac Fix tox ValueError: No closing quotation
Change-Id: Ic0ee2cd1f588a909f8739ea3495250e99b7706ab
2015-12-18 07:37:14 +00:00
KATO Tomoyuki
15d403d2ff Enable translation publication with docs publication
* since training-guides repo is not so frequently updated,
  publish the translated guides with the original guide.
* also, remove the unnecessary tox environment.

Change-Id: I8b413d7e8343e661e3d1bdeb5db8b58fa07c0e29
2015-11-30 22:01:40 +09:00
KATO Tomoyuki
f02d698a6a Add a script to build the traslated guides
* attach a sample Japanese language file to test multiple language building.

Change-Id: I48b2d87b752c01cf71d43b3766bd238d37a8c350
2015-11-30 13:04:49 +09:00
Jenkins
72b2c708af Merge "Add rsync to whitelist_externals" 2015-11-05 12:41:01 +00:00
KATO Tomoyuki
8bd63e3f0c Add rsync to whitelist_externals
To avoid unnecessary warning.

Change-Id: I9bf6b7a03b0b9bea826dc906fe2ab7e0094e3ac9
2015-11-05 12:33:48 +00:00
KATO Tomoyuki
7219cb7d67 Create translation tools
Change-Id: I0d73acfda324f4d3af2470aed8d7b3bf64f19c75
2015-11-02 13:58:54 +09:00
Matjaz Pancur
603a0abfe7 [Upstream-training] Move content from wiki to the RST 2
Move content from https://wiki.openstack.org/wiki/OpenStack_Upstream_Training/Info
to the RST format.

Change-Id: Ic4d6b638015a240341fc1664283650ac35fb8fc6
2015-10-21 23:15:33 +02:00
Matjaz Pancur
1eaae0d527 [Upstream training] Publish Upstream on docs.openstack.org/upstream-training
Upstream training is currently published as draft. Enable publishing as a
regular content on docs.openstack.org/upstream-training.

Change-Id: I9efa7918d84acd7d637f063b3ef8b07291072c15
2015-09-28 15:22:49 +02:00
Matjaz Pancur
4549bfcbae [Upstream training] publish Upstream's new index.html as draft
Publish new index.html for Upstream training on
http://docs.openstack.org/draft/upstream-training.

Change-Id: I5d6295e6fb4e69fe63163ef46f75e5618746aa89
2015-09-17 15:31:48 +02:00
Jenkins
a382e9aaab Merge "[Upstream training] new landing page" 2015-09-15 19:52:55 +00:00
Matjaz Pancur
600d867455 [Upstream training] new landing page
Adds a new openstackdocs themed landing page for Upstream training. Renames
old landing page to slide-index.html (so users that prefer slide-only landing
page can still use it).

Change-Id: I8575af8e5b70940e5252c86e8c584261e0e29ab4
Closes-Bug: #1494724
2015-09-11 14:45:10 +02:00
Matjaz Pancur
578b53962b Publish training-guides slides as draft
Update publishdocs target so that the training-guides
slides will be published at
http://docs.openstack.org/draft/training-guides

Change-Id: I7418dbbc5935b86d49fd5917041d7e4e2af2d3cf
2015-09-08 10:01:54 +02:00
Pranav Salunke
4775bbdcc4 Updates tox.ini to publish training guides draft
Start publishing training gudies to draft. This also
enables preview during the review on the gerrit interface.

Change-Id: Ibd7090f6ce130fbec73586acece223f81b120122
2015-07-22 11:00:14 +02:00
Andreas Jaeger
b688b5ee43 Fix environment for publishing
The tox environment name should be publishdocs for proper publishing.

Change-Id: I654c20a2adcf83626971b445b0909cbffb40d944
2015-05-16 19:38:27 +02:00
Andreas Jaeger
f0daf37725 Publish upstream-training slides as draft
Create publishbuild and checkbuild targets so that the upstream-training
slides will be gated and published at
http://docs.openstack.org/draft/upstream-training

Change-Id: I2ad3736cbd5e66d07bb84ffb9f805a0270663f7b
2015-05-13 20:26:03 +02:00
Jenkins
00b930633c Merge "Use Hieroglyph instead of landslide in Training Guides" 2015-04-22 07:51:21 +00:00
Matjaz Pancur
4ba7c3e311 Use Hieroglyph instead of landslide in Training Guides
- delete landslide files
- convert existing rst files to Hieroglyph format
- add new slide build command to the tox.ini
- change default CSS to make output more OpenStack-like
  - used the Foundation Slides' OpenStack-Powered-April2015.ppt
  - title slide with image
  - white h1 css text
  - "openstack's special red" for h2

Change-Id: Icb22482862a85c3d174d9292fb470f64fb95f7aa
2015-04-20 11:25:16 +02:00
Pranav Salunke
36cd7475d8 Rename and updates bashate.
Updates bashate checks to cover the labs folder more throughly and
also omit all other possible files.

Change-Id: I9ad1ef55b54351e21175db8bb08bc44526e952e9
2015-04-19 15:03:17 +02:00
Jenkins
fcb356bbd9 Merge "Automate Bash style check" 2015-04-19 12:58:00 +00:00
Utsav Dusad
5073cdfcaa Automate Bash style check
bashates all scripts under labs folder.
Change-Id: I99b3fbf7ee3eee41a1917cba236f78dc68f155e3
Closes-Bug: #1430649
2015-04-10 23:22:50 +05:30
Pranav Salunke
9ac3590de7 Adds upstream training to OpenStack gate
Update the current gate 'slides' to build and publish upstream
training content. This patch does the following changes.

* Adds generateslides script to use sphinx/hieroglyph to build slides
* Updates tox.ini to use generateslides script
* Update .gitignore to ignore _build/ directory which is the default
  folder for generated output generated by sphix.

Hence forth, any changes to the upstream training rst slides will be
gated and published, also it is essential to note that these jobs are
new and may not be accurate or reliable to address all the errors in
the rst slides.

Change-Id: I8a220dd31501f9b3733a6282d7048fe283d2a0d1
2015-04-07 14:27:06 +02:00
Matjaz Pancur
de4b4f6a2c Update tox.ini
- rename tox option for building upstream slides only (useful when "debugging"
slide content and appearance), adds doc8 syntax checking
- update ignore-path for doc8 (include also the (future) build directory for
the training guides)

Change-Id: I112f4f20f676e369f7369ed036b14464862ea3ef
2015-04-05 22:37:21 +02:00
Pranav Salunke
f1e4bfeca8 Porting presentations to Sphinx/Hieroglyph
modifided tox.ini and requirements.txt to install
hieroglyph, added some changes in the styles
of the individual .rst files to support hiero

Change-Id: Id2674e593857470cf4efa0706a4fbda33813f374
2015-03-26 14:33:38 +01:00
Pranav Salunke
191e317d84 Disables XML publishing
Address the change from XML to RST, XML based jobs are disabled. Current
content in Juno release for training guides is not going to include any
XML Docbook content. This patch disables the XML related jobs.

This patch will be followed by more jobs added to build RST content to
HTML and PDF format as required using the tools decided by the team. The
jobs disabled will be re-enabled with the appropriate set of tools.

Deletes all the jobs which are not required. Addresses changes done by
https://review.openstack.org/#/c/152118.

Change-Id: I91727929fe19dbc7487f2719cdba80157c543d6b
2015-02-23 08:10:25 +01:00
Andreas Jaeger
04864cce1f Add slides tox environment
Add slides tox environment for building RST based slides. This tox
environment needs to be enhanced moving forward. For now it includes
the doc8 test to test RST and txt files. Also setup doc8 testing.

Change-Id: I76e0d235b9ee89c8de8033a7119e34cbcf1f0ddd
2015-02-19 19:19:35 +01:00
Pranav Salunke
269efda7e8 Updates training labs jobs
Adds a script for building windows scripts and creating tar/zip files
for the labs section.

Change-Id: I8a1fd7a9600aa85f6ecd67802d272755bd0ba9e5
2015-02-07 11:39:16 +01:00
Andreas Jaeger
234b7f8640 Setup publishing to /trunk/training-guides
Publish files to /trunk/training-guides

Part of bp:training-icehouse-release

Change-Id: I243215a8599870667567f3e0a4f7a5e2923f5097
2015-01-27 17:39:07 +01:00
Roger Luethi
67db6e7aa3 labs: fix Windows batch file creation
This changeset reverts "labs: temporary wbatch fix" and replaces it with
a proper fix, allowing the creation of correct Windows batch files on
build hosts without VirtualBox.

Change-Id: Iad005ce9f0dcecb910fc09b2c43385dd42992eda
2014-11-27 15:20:22 +01:00
Roger Luethi
91663b7145 labs: temporary wbatch fix
The Windows batch files created on the build host have a defect. This
patch should produce zip files with correct scripts until we have a
proper fix.

Change-Id: I9563bd6374d8e020dea29f300fab9c618f3e1987
2014-11-26 14:28:37 +01:00
Gauvain Pocentek
5d3fb63eaa Make sure that tox uses python2 by default
Our documentation tools are not python3 compatible, so make sure that
tox creates python2 virtual environments during tests.

Change-Id: I86f160fb952ebce8abbac166fe43aae0e7d57005
2014-10-31 08:42:08 +01:00
Roger Luethi
7ba7f44137 tox.ini: create and publish Windows batch files
Generate Windows batch files using osbash.sh and create a zip archive
of the labs directory (for Windows users).

Change-Id: I98005cb390f80ec1681914be041084dfa737ffa5
2014-10-28 10:36:14 +01:00
Pranav Salunke
15c8609f42 Update checkbuild section under tox
Makes required directories since they are not created by the doc tools
if only *.po/*.pot files in locale directories are touched.

Change-Id: Iaa206a414f29972f4b627a2cc3a29b52ff85cc25
2014-10-27 15:21:55 +00:00
Pranav Salunke
19d9c94420 Generating tar file for labs section
Generates tar files for labs section for those who want to run the
lab scripts without having to install git and cloning the entire
repository.

Change-Id: I48056f3195b43dec0e15152ee1777b936e29a24d
2014-10-24 16:49:38 +02:00
Andreas Jaeger
b64661a858 Setup for translation
Setup the same way the other repos are setup.

Note that currently no jobs are run since training-guides has no
localization. But let's keep the setup in sync.

Change-Id: I7e9ced06c3ad9997d7f790a5a4d507fa13ef0490
2014-08-18 21:05:12 +02:00
Andreas Jaeger
4b308c2447 Add new checklinks tox environment
This is a new non-voting job that will be used for changes of the
manual. It checks that URLs in the manual are reachable and valid.

Change-Id: Iaa9c3f0285aee900f3f51a10669904d72e1113b7
2014-08-16 12:15:19 +02:00
Andreas Jaeger
a970b5104e Setup training-guides for translation
Note that this does not build any translated guides yet since we do not
have the guides translated properly into any language.

This infrastructure is needed to enable the translations.

Change-Id: I2accb7e713ed88a3e06edca31bb7691d2d0bc14c
2014-07-08 22:08:20 +02:00