Commit Graph

51 Commits

Author SHA1 Message Date
Andreas Jaeger 5c9eb70f6f Cleanup py27 support
The repo is now building with py3 only, so remove Py27 support.

Change-Id: I6e2eb0b0c31c3dff676241570ebe2f1e852dfc0e
2020-04-14 12:11:03 +00:00
Andreas Jaeger b04c695b2c Cleanup jobs
Follow job rename  in openstack-manuals, remove now unused
checkbuild environment and simplify build-index.sh script
since the same content is build everytime.

Also remove www/www-index.html, we do not use it anymore.

Depends-On: https://review.opendev.org/676956
Change-Id: I00b5afc14fc7872edc1c9db9a0aaa7949b1f1443
2019-08-16 17:00:24 +02:00
Andreas Jaeger 8a82b1445a Switch publishing to publish-docs/html
This allows simplifying the CI jobs.

Depends-On: https://review.opendev.org/676489
Change-Id: If363e5b0f16cd126dd9ddb5e23e4762d9496ef79
2019-08-15 06:45:04 +02:00
Andreas Jaeger 57ca6e1317 Remove api-quick-start
The document is now in openstack-manuals, we can remove it here
completely together with the jobs for building it.

Add a redirect to new location.

Depends-On: https://review.opendev.org/671115
Change-Id: Ife74ae2b83bdae1e206b0705faf6f623428a3f1f
2019-07-17 10:43:50 +02:00
Andreas Jaeger d2e1f23d91 Remove firstapp guides
These guides are dead, remove them completely. This will also remove
the documents from the developer website, so remove all links.

Change-Id: Ifd9a4d8a187962498d6f1133226a77308bc2f5ff
2019-07-17 08:42:50 +00:00
Ian Y. Choi b83ab91578 Fix publishdocs error with Python 3
This patch fixes the following error
 - AttributeError: 'bytes' object has no attribute 'encode'

Change-Id: I49febda11f53dc8dc794deaa21d846c5875b613e
2019-06-22 15:08:50 +09:00
Zuul 039a8c050e Merge "Raise if parsing, rendering, or writing fails" 2017-10-23 16:59:20 +00:00
Eric Fried 9380aeee17 Raise if parsing, rendering, or writing fails
If jinja template parsing, rendering, or writing fails, we used to log
an error message and continue.  With this change, we'll raise the
original exception so we print the traceback and fail the build right
away.

Change-Id: I9e92d3aed844d965a425c43c79a8844e5c4bd006
2017-10-22 21:16:03 +00:00
Monty Taylor 7d9497a373 Generate api-ref redirects for service type aliases
We track official service type names and their historical aliases. As
api-ref is organized by service-type, it stands to reason that if a
service-type changes (or has changed) that a link might exist to the old
value.

Use the service types authority data to generate a set of redirects for
all aliases of a service to the official service type location.

Change-Id: I96a5502ca6cd3e78f996ad9b60101c907e2150cd
2017-10-22 16:23:01 +02:00
Andreas Jaeger 9d230819a6 Use publish-docs for Zuul v3
With Zuul v2, the publishing happens from publish-docs/api-ref.
Let's simplify our scripts and publish with Zuul v3 from publish-docs
directly.

Add new jobs publishlang and publishbuild for Zuul v3 publishing.
Use existing publishlang-api and publishbuild-api for Zuul v2
publishing.

Remove now obsolete comment from doc-tools-check-languages.conf.

Change-Id: I32b29a34c571882cb4d7c542c543ea726e76a0b5
2017-10-09 22:08:27 +02:00
Andreas Jaeger f679b56fdb Remove obsolete files
These files are not used anymore, remove them.

Change-Id: Icd8cd564f21e972e856754393fe677b839ba0cb9
2017-10-09 22:08:27 +02:00
Andreas Jaeger 8fa4937999 Fix typo in tox.ini
The last change had a typo in the job invocation, fix it.
Remove ls, the job output showed the content is available as expected.
Fix also permissions on shell script.

Change-Id: I4ef65188ccdeebf59cc684f2de99c2198c0c3127
2017-09-14 21:24:18 +02:00
Andreas Jaeger a07cffc1d9 Publish translated firstapp guides properly
Wildcards do not work in tox.ini, use a shell script instead to
move the content.

Change-Id: I0bfef7e2e936a67ef2cc9efcd802a6c918305374
2017-09-14 19:49:19 +02:00
Andreas Jaeger 9b78b005de Add marker file
Add marker files in the root of our tree.

This is needed for publishing in the future:
This is so that we can create a list of directories to ignore when we
rsync documentation builds to a publishing site. Some builds are
published as subdirectories underneath the results of superior
builds.

This allows those superior builds to be rsynced without removing the
other builds that were published under them.

Change-Id: I96a67f022f9fef0794a8a25b6e397177e30d1f5f
2016-09-16 09:57:27 +02:00
Andreas Jaeger bb8b09bd7a Drop DocBook support, swagger building
We do not need to build and publish the DocBook XML content anymore,
everything is frozen and in the process of moving to projects. Remove
set up for building of DocBook content.

This leaves the XML files still in tree, we can remove them later.

The DocBook XML gates are still setup, so some tox environments have
been made a noop.

Require openstack-doc-tools 1.0.0 which removes DocBook XML support.

Also, drop swagger building, this is not needed anymore.

Change-Id: I276953013a518a09dabb89bb8f80ef7739b4491b
2016-08-23 13:20:09 +02:00
Marcela Bonell 8d6626b061 MyFirstApp: Official go for shade sdk
- Move shade to the published documents in the build script.
- Add shade resources and documentation in developer.openstack.org

Change-Id: I85885b1bd3a8ec641c36dce0338ad237aa35da50
2016-07-28 16:32:38 -05:00
Anne Gentle c4d648d3e5 Edits to fix makeswagger error "WARNING No tags for method listVersions"
Also updates the tools/build-api-ref-swagger.sh script so that
the errant WADL file name is output.

Change-Id: I312c0be565983950a9fce0f6d653eacdcef2695c
2016-04-21 18:48:23 -05:00
Chung Chih, Hung 7f6e20ae5c Add getting_started tutorial for Gophercloud SDK
Add getting_started tutorial for Gophercloud SDK, code had been tested
on a openstack cloud with neutron.

Change-Id: Ife8bc23671ddff175a5ff424e08893c746d97482
2016-03-04 09:55:17 +08:00
KATO Tomoyuki 84758f1e47 Rename common-rst to common
Change-Id: I2007268dde122edf5437c4905dbb8e9cc3b06529
2016-02-14 18:35:38 +09:00
Anne Gentle d4156fe7f8 Adds build script for Swagger JSON conversion
- This change lets us upload Swagger files for testing and
validating online.

Change-Id: Ifb570e42b29ec8f01889c982b7cd700754a0e5f7
2016-02-05 15:21:33 -05:00
Andreas Jaeger 36536f9554 Fix build-index
use mkdir -p so that the script does not fail if the directory already
exists.

Change-Id: I9a527b5dcabd7286eb8af7dcccef2a85be577387
2016-01-08 07:17:35 +01:00
Russell Sim 68b1f1e748 Refresh index to match docs.openstack.org
Added tools/build-index.sh which will build an index.html and copy
needed static files into publish-docs/www

Change-Id: If65a9da675a182f0aab659cb076c3a4aba032b58
2016-01-07 13:47:04 -06:00
Martin Paulo 7682d59aa9 Added the jclouds scaling out code sample
Added a scaling out code sample for jclouds and modified the
scaling out chapter to reference it.

Also modified the build so that the jclouds draft documentation
is now generated so that we can see the code appear in context.

Change-Id: Iaf9ee952e008bdb68e52717524de723597da0690
Partial-Bug: #1449330
2015-11-23 16:16:24 +11:00
Jenkins 705447a53e Merge "[firstapp] add samples for section1 using python-openstacksdk" 2015-11-11 05:18:01 +00:00
Christian Berendt 5ff1dff13c [firstapp] add samples for section1 using python-openstacksdk
Co-Author: Stanislaw Szydlo <stanislaw.szydlo@ericpol.com>
Co-Author: Christian Berendt <berendt@b1-systems.de>
Co-Author: Tom Fifield <tom@openstack.org>

Partial-Bug: 1449328

Change-Id: I8858601a4a2cc21b526c2ba4dc9ee7c8a39a1edc
2015-10-22 09:25:55 +02:00
Andreas Jaeger 2c69bdd2c5 Fix publishing of draft firstapp guides
To publish the draft guides, we need to move them to publish-docs/api-ref.
Fix the publishing location.

Change-Id: Iaf27e9315031be232672ae4d33efff2c0db9ce65
2015-10-14 20:10:15 +02:00
Anne Gentle 23a4cdd13d Fixes path to build the API Quick Start
Change-Id: Ib247fc1abe9e3ff02d1250bc24e35958a6d7d725
2015-10-09 12:55:46 -05:00
Anne Gentle 340abc3b14 Builds to quick-start instead of api-quick-start
- Want to publish to developer.openstack.org/api/quick-start

Change-Id: Ic8772a256db740e1ea7fe9aa536b494a94bd714b
2015-10-08 14:00:13 -05:00
Andreas Jaeger 88adb2488a Fix generatepot-rst for api-quick-start
The guide has no common directory, therefore we have no common
translation. Handle this  in our script.

Change-Id: Id34b92430ef4da804335714710547ada02c23cef
2015-10-08 06:57:00 +02:00
Jenkins ef39aa4e56 Merge "Migrates API quick start one pager to RST" 2015-10-07 22:24:57 +00:00
Anne Gentle 4e986a3c7c Migrates API quick start one pager to RST
- Adds openstack commands

Change-Id: I57780453bd8ee214d10b646e7a989de7e33fa2a9
2015-10-07 15:16:17 -05:00
Andreas Jaeger e128658013 Import generatepot-rst for RST translations
Import tool from openstack-manuals to build RST translations.

Change-Id: I54251b272482af0e61755c138e78039e52a9efa6
Depends-On: I93a6d8ccb8c314c0961b87a239462183712cdd26
2015-10-07 08:25:31 +02:00
Stefano Maffulli c5fa73302b Adding tutorial for OpenStack Shade library
Fixed also a bunch of English-language to the getting started text

co-authored-by: Diane Fleming

Change-Id: I9318cdefb628a7441a984f7c8f200202b41430dd
2015-08-11 11:35:22 -07:00
sonu.kumar e9e5b4287f Replacing print with print() to provide py 2/3 compatibility
This patch replaces print operator in python 2 with print() to provide py 2/3
compatibility.

Change-Id: Ic8854e5518834e2894e003bab80d6be525ac0be8
2015-08-03 17:37:37 +05:30
Andreas Jaeger 3330718f4b Rework RST building
Use the same shell scripts like openstack-manuals for building of RST
files. This simplifies the tox.ini file and allows easier adding of new
tags.

This now build dotnet, fog, and pkgcloud versions as draft documents and
continues to publish the libcloud version.

Change-Id: Id5deebbb54904a44691104e19ef60f15a14c0f7c
2015-07-12 12:03:17 +02:00
Tom Fifield 79065aad30 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: Ib859cc9a77dc05aad1317a67962aae516f6a4f0b
2015-01-01 20:39:34 +08:00
Christian Berendt 98a7d96f64 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: Ibd967ed83022cab4a0f8c5b7135934138bdba0d6
2014-10-09 09:24:09 +02:00
Andreas Jaeger 4b9e370d8d Use doc-tools-check-languages
Use new global language checking script and remove test-languages.sh.

Change-Id: Id954d5b471ba231c85139e7df5d89a478226dc8d
2014-08-18 20:55:46 +02:00
Andreas Jaeger dfea147408 Test translations for Catalan
Test Catalan ('ca').

Change-Id: Ib5df72d88d73728acd17b27871d8a5378c7bcaf6
2014-07-25 08:25:35 +02:00
Andreas Jaeger 016f5794a5 Remove non-supported option publish-install
Fix help text of test-languages.sh.
Use "test" instead of publish  for buildlang invocation which can
be used to manually build translated manuals.

Change-Id: I617e8008e78bebc2d4e6c09300606a50d4b37ebc
2014-07-03 22:21:08 +02:00
Andreas Jaeger 9989ff28bc Add zh_CN builds
The api-quick-start has been translated for zh_CN, include it in builds.

Change-Id: If1740e128d95c8dec80ea489c7747b1d94e2edff
2014-07-01 09:11:17 +02:00
Andreas Jaeger 1eaaf99b5c Rework translation tests
Rework test-languages so that we can test *all* languages as well
if needed and use the same script for both buildlang and testlang.
Add new tox job "publishlang" to publish all languages at once.

Change-Id: I7c7a5622df219f8ffa2dd1b824179de749ea2fed
2014-06-30 21:50:09 +02:00
Andreas Jaeger 404029878d Test ko_KR api-quick-start
The guide is translated, let's test it now.

Change-Id: Idcc7ae26756ff23f3a38247905772789efcd2422
2014-06-24 12:05:07 +02:00
Andreas Jaeger 1d664125d1 Add test for German api-quick-start
The German file is now 100 % translated, so include it in testing.

Change-Id: I91ae5d8296c76f2df08b68cc139256410c33a358
2014-05-26 09:59:10 +02:00
Andreas Jaeger 3db02959fe Create checklang tox.ini target
Create target to test that localized manuals are actually building.

Change-Id: Ie0ff3338373acc824f9d4f1a55e991f6ebd1af2e
2014-05-15 16:52:55 -04:00
Jenkins c9c83afbb0 Merge "Enable building of translated manuals" 2014-04-28 06:34:03 +00:00
Andreas Jaeger d5c7f3e252 Remove tools/generatedocbook
We use the file from openstack-doc-tools, no need for local versions.

Change-Id: Id9c2760ec557071e17441d18c26acafd12d18576
2014-04-24 20:28:48 +02:00
Andreas Jaeger 1f64b95737 Enable building of translated manuals
This is the initial setup to build translated manuals. For now only the
api-quick-start is build.

This needs openstack-doc-tools version 0.13.

Change-Id: I140b8007d76bda5f436cbd80e77b890852c71827
2014-04-24 20:14:13 +02:00
Andreas Jaeger 3b0a580b15 Add translation tools
We need these tools for our translation gates.

Related-Bug: #1291844
Change-Id: I466a17acfd133e085fbb63bd71d5d59bd833ae3b
2014-03-14 09:46:35 +01:00
Joe Gordon 1572594be1 Remove unused tools/rfc.sh
OpenStack now uses git-review from pip

Change-Id: Ib9e73f223478fe6df00011e385f767ff1a2d6bc2
2012-05-23 19:11:16 -07:00