Commit Graph

37 Commits

Author SHA1 Message Date
Ron Stone 430d6fa0fe Add duplicate abbr check (r8, r7, r6, r5)
Add a check for duplicate :abbr: anchor strings to prebuild phase
and error on duplicates.

Change-Id: I034c321a3c83aa4c0cbcf551fd90161e9e221c18
Signed-off-by: Ron Stone <ronald.stone@windriver.com>
2023-11-30 14:03:40 +00:00
Ron Stone 334a73686b Hide empty rows (r8, r7, r6, r5)
Strip empty rows from HTML output tables. Max width 10 columns.
|hide-empty-rows| must be present in corresponding rst file.

This is a post-build clean-up step for tables with conditional
content that renders as empty rows.

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: Ia65cc0a945d0ed8955c2a5d9bb68649d2280d27d
2023-11-03 13:31:21 +00:00
Ron Stone ce3ba6d4d8 Add tabbed output support (r8)
Enable HTML tabs in output pages. This is initially for use differentiating virtual
from bare-metal instructions in a consolidated Install doc. Since virtual content is
currently StarlingX-only, content must be conditionalized as in:

.. present tabbed content choice to StarlingX builds

.. only:: virtual

   .. tabs::

      .. tab:: Virtual

         Apples are green, or sometimes red.

      .. tab:: Bare Metal

         .. bare-metal-pear-begin

         Pears are green.

         .. bare-metal-pear-end

.. Present bare-metal only to non-StarlingX builds as non-tabbed content

.. only:: partner

   .. include:: this-file.rst
      :start-after: bare-metal-pear-begin
      :end-before: bare-metal-pear-end

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: Ib65cf59f510e685a82c3d1ab046cb656d0f2fba1
2023-09-13 15:03:32 +00:00
Ron Stone 6191b0f544 Add singlehtml output (r8, r7. r6, r5)
Add a tox job to output docs as a single HTML page. This is mostly
for use by writers who need to reliably search globally for
content when making updates. Can be printed to PDF using browser
Print
Abstract pre and post phases for reuse in multiple builds.

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: Ic03c82ac91a69f242c1b192e10fb19ef30846e2f
2023-09-12 14:31:02 +00:00
Al Bailey 5c86db74c8 Pin tox to be less than 4
The dev environment used by some docs developers uses
an old version of tox, and does not support the
allowlist_externals entry required by tox 4.

The version of tox used by some other developers cannot
support tox.ini that contains both allowlist_externals and
whitelist_externals in the same file.

The fix for now is to stay with whitelist_externals and tox<4

This fix mostly reverts and re-works these two commits
https://review.opendev.org/c/starlingx/docs/+/869229
https://review.opendev.org/c/starlingx/docs/+/868621

Partial-Bug: #2000399

Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: Ib8a5eea5d27e7b7347bc717d11f9dc5a0be4f396
2023-01-13 14:00:16 +00:00
Zuul 040fb448a6 Merge "Integrate Verified HW table" 2023-01-04 21:25:21 +00:00
Al Bailey 79e88eaa4d Allow older version of tox to still work for this repo
When updating the tox.ini files to support tox 4 the older
tox 2.9 support became broken.  That version of tox is
still being used by several contributors to this repo.

The proposed change is to manually alias whitelist_externals
to allowlist_externals in the tox.ini sections.

Partial-Bug: #2000399

Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I2cbd04b8170ae30cbfa8e9e93cc67af54e0cf602
2023-01-04 15:22:21 +00:00
Ron Stone 2ccf85cccf Integrate Verified HW table
Pull DS Verified Hw table into topic as html chunk.
Trigger post-build clean-up.
Add support for upcoming release.
Resolve merge conflict.
Restore verified table in upstream context.
Remove illegal blank line.
Uncomment post-processing file.

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: Ib035e932c79723ccbe46fa14928df7b51c247765
2023-01-03 10:30:01 -05:00
Al Bailey dcad0bbc57 Update tox.ini to work with tox 4
This change will allow this repo to pass zuul now
that this has merged:
https://review.opendev.org/c/zuul/zuul-jobs/+/866943

Tox 4 deprecated whitelist_externals.
Replace whitelist_externals with allowlist_externals

Partial-Bug: #2000399

Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: Idd6eab4a194066072ef362be970e5b982665bf43
2022-12-26 22:02:11 +00:00
Ron Stone db4411bc4d Supported HW updates
Refresh existing HW listing
Add support for verified HW table
Resolve merge conflict
Update table label
Commenting out raw html pull. Sphinx is not conditionalizing this.

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: I02abaf299a8010ee562776eda094d116fb8113e2
2022-12-20 13:44:00 -05:00
Elisamara Aoki Goncalves 003d5d4439 Improved Subcloud Deployment / Upgrading Error Reporting (GUI & CLI)
Add new items with example to sections.
Add new example figure.
Fix numbering.
Resize figures to fit the page.
Update log files name.
Add item 4 in include file.
RS> Conditionalize 'dcmanager subcloud list' states for
    various run scenarios
RS> Move step from .. only:: block to .. include::
RS> Pre-process included blocks in non-block context
RS> Remove debug message from script
EG> Added example
EG> Fixed caution box

Story: 2010271
Task: 46946

Signed-off-by: Elisamara Aoki Goncalves <elisamaraaoki.goncalves@windriver.com>
Change-Id: I3791a23fefba8d9d428ae208b3bfcb9274d49278
2022-12-15 13:31:33 -03:00
Ron Stone f0d8c8fe96 Open 700 series
Open 700 series alarms from 75* > 7**. "Context" field will filter
platform/openstack output.

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: Ida65b8fee894f288a874a4312f7ded641ae019c5
2022-11-25 12:21:46 -05:00
Ron Stone 4cba4d804d Fix tox command
Fix parser.py loading

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: If2a8a56316055e00f78a4418190053baf28ac679
2022-11-23 12:43:42 -05:00
Ron Stone d9a46355d1 Update tox
Call script as arg to bash in case shebang fails

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: If0adef0715ebf2071079adbc02dee66e34143603
2022-11-22 15:06:02 -05:00
Ron Stone c3444e384d Implement alarm parsing
Configure tox+content to fetch event and convert alarms and logs
to rst for use in build.
Handle non-existant tmp dir in zuul builds
Add static events.yaml for CI/CD testingx
Generalize label construction to prevent namespace conflicts
Consume events directly from fm repo (required changes merged)
Update logs template for legibility.
Add clean up for temporary rst files.
Point parser at dynamically downloaded events file
Restore logs template

Note: This review deletes static alarm and log files
Note: This review excludes alarm files from git as they are now
      build-time temp files.
Note: This review uses a static copy of events.yaml to pass tox
      until the dep. below is met. It will need reconfiguration
      at that time.

Depends-On: https://review.opendev.org/c/starlingx/fault/+/863574

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: I0bb8d0a77b9d3cf22b33f8930c569b3e70b7291c
2022-11-18 11:34:27 -05:00
Ron Stone efa7c5ab7d Download files
Pull arbitrary files into the build.
Use swapable configs to specify source and dest.
Remove echo used for testing.
Clean up comments
Clean up usage output
Add missing semicolon
Standardize arg handling
Add flag to skip branch lookup & dl from non-git URLs
Delete commented/obsolete lines
Troubleshoot zuul -1:
Failing on "grep '^\[testenv:pdf-docs\]' src/opendev.org/starlingx/docs/tox.ini"
- this change does not touch tox.ini
- other reviews are passing with the same tox file
- removing new subdir named 'configs' on hunch that this may be a
  reserved name?
- Adjust linters to relax line lenght restrition on yaml files
Update target location for alarms and logs.
Delete temporary events dl used in testing

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: I8ffff95688bf9a3a93e7e5a01bacbf132abe312d
2022-11-09 10:05:38 -05:00
Ron Stone eb817e355d Manage tox uppers internally (r5,r6)
Fix for a recent change to openstack upper-constraints that is
incompatible with pinning sphinx at 4.2.0

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: I96c6c860f2cefe876f9170063c72c6b17224eaf1
2022-05-10 19:14:47 +00:00
Ron Stone 01d80549f4 Pass build path as arg (r5,r6,dsR6)
This script is being used in repos where the html output
path differs. Pass as arg in tox.ini.

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: I6d2643e9a810e1054feaefb2f46612c4e8f8789a
2022-04-28 19:15:01 +00:00
Ron Stone 20bde4f408 Find missing cherry-picks (r5,r6,dsR6)
Compare logs for two arbitrary branches by author and date range
and filter for unmatched subject lines with pick notation e.g.
(dsR6,r5).

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: I45a1fe29f861fe8a749526a63a1f86d91efca3a3
2022-04-12 07:35:29 -04:00
Ron Stone f95ffd6878 Spell check config updates.
Continuation of https://review.opendev.org/c/starlingx/docs/+/826142
Move sphinxcontrib.spelling dependency out of 'docs' build env
Minor updates to spelling_wordlist.txt for testing
Note: shared/strings.txt do not current load into spellcheck env. This causes
numerous warnings but does not interfere with spell check. More investigation
TBD.
Note above no longer relevant. Fixed.
Incorporated Patchset 1 review comments.
Remove terms from wordlist
Exclude Chinese doc from EN-US spellcheck
Updates to wordlist
Resolve merge conflicts.

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: I78639c2dc468f9132297b75280ba373d05c28233
2022-02-10 10:07:55 -05:00
Ron Stone 7271e6bc45 Implement preflight checks
- spellcheck
 - linkcheck
Implemented as distinct environments to prevent premature exits on error.
Add 'enchant' C library via bindep

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: I61912b7601719649655dd9dae86800f8b33d58f8
2022-01-27 13:11:56 -05:00
Ron Stone 4cdf447ece Extent usage of UUID filenames
Extend newfile script to generate unique filenames for
include files.
Update instructions in Contributor guide
Include correct version of new-topic.sh
Fix script output in Contributor guide

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: I049adb2a8b8b028c45e2fc4f951db664e4777550
2021-12-23 07:36:17 -05:00
Ron Stone 6662c926e2 Repin sphinx version
Upstream constrainsts change here invalidates sphinx version upper limit:
https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt
This change resets constraint and removes dependancy on upper-constraints.txt

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: I5bf939734cbb386c95de2328bea6c0c89e7ab3ee
2021-11-16 09:21:27 -05:00
Ron Stone 89c8aeaca5 Unique rST file names
As discussed, a simple script to create stubs with unique names and labels.
Prefix name of index files with "index-" to distinguish them from 'regular'
files.
Added missing "::" to templated rubrics.
Remove unneeded echo.

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: I8f7dd8f4a57655032de6913d4570f5ca5c2b9338
Signed-off-by: Ron Stone <ronald.stone@windriver.com>
2021-09-29 07:49:00 -04:00
Ron Stone 9ac2eb2a4e Install docs refactoring-updates
Additional conditionalization and corrections.
Patchset 1 review updates.
Added Installation appendixes
Adjusted tox.ini for contitionalized openstack blocks
Patchset 2 review comments.
Patchset 3 review comments and tried to make changes more globally in edited files.

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: Icca40bc8c8c46ca1f3f38f5e4a63f5bb466b19bc
Signed-off-by: Ron Stone <ronald.stone@windriver.com>
2021-05-12 16:40:36 -04:00
Rafael Jardim 480c499d21 Update upstream node management
There are some files that was added new content.

Signed-off-by: Rafael Jardim <rafaeljordao.jardim@windriver.com>
Change-Id: I5489abf08647014030f53849120c1c42a798cdfe
2021-03-10 14:05:00 -03:00
Ron Stone 75e96e3eff HTML checks
Restarting review https://review.opendev.org/c/starlingx/docs/+/773155

Adding htmlChecks.sh to tox.ini. Script will run post-build checks for
HTML formatting issues not reported by sphinx.
Per 773155 review of tox failure, updated tox.ini to pass script to bash.
Script was executable in previous review but failed remote runs.

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: I603c724fcac567006e20244cffa15ee2860a7b68
2021-02-02 08:03:13 -05:00
Stone d585d536f7 tox.ini modification
Adding --keep-going arg.
With -W option, keep going processing when getting warnings to the end of build, and sphinx-build exits with exit status 1.
This is useful to address multiple build errors in parallel instead of a series of build/fail cycles.

Signed-off-by: Stone <ronald.stone@windriver.com>
Change-Id: I0e73ec8e9d6e5f32a37ee0cbe4e113d024cc485b
2021-01-25 13:00:41 -05:00
Ron Stone d99ab454f1 Changes to support conditionalizing rST 'substitutions'
Base set of substitutions added for organization name, product
names, document names amd rubrics.

This amendment adds a substitition for StarlingX OpenStack.

Change-Id: I236c193ae3a526a3903afa23a0a86db7d61f1244
Signed-off-by: Ron Stone <ronald.stone@windriver.com>
2020-09-16 08:20:32 -04:00
Andreas Jaeger b8cfb53f19 Update docs building
Several reorgs:
* setup.cfg/setup.py must be in top-level dir so that siblings
  (installing for example openstackdocstheme from source instead of
  pip) works.
* Update openstackdocstheme version (see below)
* Remove unused entries from setup.cfg
* Remove py27 code from setup.py
* Update tox.ini for a py3 only world and cleanup

Switch to openstackdocstheme 2.2.1 version. Using
this version will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Disable openstackdocs_auto_name to use 'project' variable 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.

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: I27039f9dc52c3e6c9e667b5699172d0f834e8f6b
2020-06-04 14:01:52 +02:00
Zuul 08b467944e Merge "fix tox python3 overrides" 2020-01-15 21:00:19 +00:00
Hang Li 52b584759c fix testenv once coverage in docs
In the file,the basepython value has been
set for the specified virtual environment.
So we don't need to set up an override in
testenv.
For this change, we executed the tox
command for testing to ensure that the
modification did not produce errors.

Change-Id: I290867f0b062e5b3b6327fb44dbf759bd857c86d
Closes-Bug: #1835394
2019-07-04 19:40:36 +08:00
98k 857d9b1ff1 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I4dae808f500bd5c8caa462a2d1deae157adff29d
Closes-Bug:  #1802032
2019-01-14 07:09:27 +00:00
Dean Troyer e3a11084e2 Add project links and pages for API Ref and Release Notes
The project-specific docs are published independently so we need
to maintain the links into those subtrees (/stx-*), also
for the api-ref (/api-ref/stx-*) and releasenotes (/releasenotes/stx-*).

Also add docs env to the default list in tox.ini.

Change-Id: If68e6c984d684af05124b3252a8ff3c4b44b6d82
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-10-18 19:13:22 -05:00
Abraham Arce ccd043a129 [Doc] OpenStack API Reference Guide Staging Repos
Baseline changes to comply with OpenStack API documentation
from OpenStack Documentation Contributor Guide [0] for
the following StarlingX staging repos:

- stx-python-cinderclient
- stx-nova
- stx-glance
- stx-neutron

Changes:

- [1] How to document your OpenStack API service
- Adding SPDX-License-Identifier: Apache-2.0

[0] https://docs.openstack.org/doc-contrib-guide
[1] https://docs.openstack.org/doc-contrib-guide/api-guides.html

Story: 2002712
Task: 26728

Change-Id: Ie8a142360b7c57d7ec477559757aa8295feb09ff
Signed-off-by: Abraham Arce <abraham.arce.moreno@intel.com>
2018-09-25 17:07:17 -07:00
Dean Troyer d4fd23d60b Update base with current OpenStack PTI config
* rename docs to doc
* adds conf.py
* adds tox 'docs' environment and sphinx-build call
* remove bashate from linters env
* clean yaml lint error

Change-Id: I9cbacea395b13554162f955ddb57e54365952f95
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2018-07-23 16:14:10 -05:00
Erich Cordoba 812c86bacd Create initial template for documentation
[dtroyer: fixed linters job and added to gate queue so this can be merged]

Story: 2002813
Task:  22727
Change-Id: I8a988cc49440b21176dc95bd12ad383836148dca
Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
2018-07-23 11:10:41 -05:00