21 Commits

Author SHA1 Message Date
KATO Tomoyuki
14f0a231df Fix generate pot script
Change-Id: I95ab5c775ce09238d0f3585672d01a95ea8a897a
2016-10-14 14:52:30 +09:00
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
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
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
KATO Tomoyuki
cca4464e07 fix build lang script
We do not have the original pot file into git repository at now.

Change-Id: I5dcee6ff03fcd1c601045d6cfbe7d47669a8986b
2016-07-04 09:40:12 +00:00
Ian Y. Choi
18afb58b36 Cleanup translation script for Upstream training
It also enables to publish translations on git.rst.
Modification is like https://review.openstack.org/#/c/300067 .

Change-Id: I5d8828270f84bfd222d3bc930d92d0928a6d89b8
2016-04-05 02:35:44 +09:00
KATO Tomoyuki
1d6d58de68 Remove unused tox environment
Change-Id: I71d08c64547305b7bb630e8973bd141419cab5e0
2016-01-26 09:27:56 +09: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
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
KATO Tomoyuki
7219cb7d67 Create translation tools
Change-Id: I0d73acfda324f4d3af2470aed8d7b3bf64f19c75
2015-11-02 13:58:54 +09:00
KATO Tomoyuki
d8c615f435 Remove unused XML related contents
Change-Id: I5a8fe38661c69aab392eb809449118d831e1844f
2015-10-30 20:32:25 +09:00
Jenkins
ef99ae77f6 Merge "Updates generatelabs scripts" 2015-04-19 12:13:36 +00:00
Pranav Salunke
96a10daffc Updates generatelabs scripts
Updates to ignore unwanted files. If someone exports their labs
scripts while having existing clusters deployed, these changes will
allow auto-ignore unwanted files while creating the compressed files.

Change-Id: I6ecae37b1d97a7c0c12854f5f3240b842da84af7
2015-04-19 14:02:25 +02:00
Jenkins
37235df89e Merge "Adds upstream training to OpenStack gate" 2015-04-13 08:56:29 +00:00
Pranav Salunke
8b9835dfea Updates generatelabs script
Removes unnecessary "bash -c" from the scripts as they are not
required and already being called from the tox.ini.

Change-Id: I533e32d37fd48c9f137ff528f85fb06437f322ce
2015-04-07 14:32:44 +02:00
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
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
Tom Fifield
8530311ff8 Ignore <option> tags in generatepot
After https://review.openstack.org/#/c/144685 merges,
the automatically generated configuration reference
tables will be marked up as
<option>option_name</option> = <replaceable>default_value</replaceable>

As none of this should be translated (option_name is the same
regardless of language), this patch updates generatepot to ignore
option_name s tagged with <option> for translation.

This should significantly reduce the number of strings required for
translation from the common directory in particular, where
many of the 8000-odd strings do not actually need translation.

Change-Id: Iedd14c6666b6072b79545082afd8e39d1011ffbf
2015-01-01 20:40:55 +08:00
Christian Berendt
5166bbb86f Remove @author tags from copyright statements
We have git to track the authorship of files. It is not necessary to use
the @author tags in the copyright statements.

Change-Id: Idf862b8d5e92a7e0f9697d4d1a95a4c225d18dde
2014-10-09 09:27:31 +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
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