releng/docs-conf.git
3 years agoFix: Rather skip .tox instead of _build twice 37/69137/4
Cédric Ollivier [Mon, 22 Nov 2021 13:33:40 +0000 (14:33 +0100)]
Fix: Rather skip .tox instead of _build twice

Else it fails in ONAP if the warnings are treated as errors.

Issue: RELENG-3968
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: I21e46ebae31a436b90361ce7ca19772b2cc3aced

3 years agoFix: Split concrete and abstract dependencies 15/68915/2 v0.7.7
Cédric Ollivier [Tue, 28 Sep 2021 17:33:22 +0000 (19:33 +0200)]
Fix: Split concrete and abstract dependencies

It adds 2 upper-constraints to pin all the dependencies.
It modifies a little bit the official upper-constraints.txt from
OpenStack due to Sphinx (4.2.0 as asked by lfdocs-conf vs 3.5.2) and
due to setuptools (58.1.0 as used in ONAP gates vs 54.1.1).

In a long run, upper-constraints.os.txt should be removed once LF/ONAP
is synced with OpenStack. For it's part, upper-constraints.lf.txt
should be centralized for all ONAP/LF projects and then removed from
this particular project.

It also adds test-requirements.txt to list all test requirements (see
tox.ini) and lists sphinx contrib modules in requirements.txt which are
selected by the default configs. Otherwise the project must falsy lists
them as deps to complete the missing lfdocs-conf requirements.

Issue: RELENG-3968

Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: I38057cdd0f3553d64c8a682faf0d304b680fcb96

3 years agoChore: Update to use funcparserlib~=1.0.0a0 04/68904/2 v0.7.6
Bengt Thuree [Mon, 27 Sep 2021 09:56:14 +0000 (19:56 +1000)]
Chore: Update to use funcparserlib~=1.0.0a0

Update funcparserlib for better compatibility
with Sphinx version 4.2.0 updated in commit
1f098cb2137c2d7b6132d44d5ad89de60336802a

This is requested by ONAP in IT-22918

Signed-off-by: Bengt Thuree <bthuree@linuxfoundation.org>
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Issue: RELENG-3968
Change-Id: Id181ed2ab65c9c6d923b73fb8968ffd69fac8bc0

3 years agoChore: Update to use Sphinx 4.2.x 77/68877/1 v0.7.5
Bengt Thuree [Thu, 23 Sep 2021 08:13:55 +0000 (18:13 +1000)]
Chore: Update to use Sphinx 4.2.x

Signed-off-by: Bengt Thuree <bthuree@linuxfoundation.org>
Issue-ID: IT-22918
Change-Id: I96a57d11a59d0dca889bb955a5bfe6cde8ff9c94

3 years agoFix: required sphinx-bootstrap-theme version 54/68854/2 v0.7.4
guillaume.lambert [Mon, 20 Sep 2021 13:03:58 +0000 (15:03 +0200)]
Fix: required sphinx-bootstrap-theme version

lfdocs-conf requires sphinx-bootstrap-theme version around 0.7.1
sphinx-bootstrap-theme v0.7.1 still uses the setup command "use_2to3".
This is no more allowed with latest versions of setuptools

https://stackoverflow.com/questions/69100275/

This breaks ODL current gating.
https://jenkins.opendaylight.org/releng/job/docs-rtd-verify-phosphorus/131/
https://git.opendaylight.org/gerrit/c/docs/+/97543/1

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I24f0b47f2898e7a9e2887e783caf36de5d0049b4

4 years agoFix: Rm dup word from ONAP Copyright notice 93/68693/1 v0.7.3
Anil Belur [Fri, 3 Sep 2021 06:17:40 +0000 (16:17 +1000)]
Fix: Rm dup word from ONAP Copyright notice

Issue-ID: RELENG-3929
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: I0ae87fdaa9db07aebe3d3d91441b054418a4cf55

4 years agoDocs: Update ONAP Copyright notice 47/68547/1 v0.7.2
Anil Belur [Mon, 16 Aug 2021 22:03:26 +0000 (08:03 +1000)]
Docs: Update ONAP Copyright notice

Ref:
https://wiki.onap.org/display/Meetings/TSC+2021-08-05

Issue-ID: RELENG-3840
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: I48b6386515787f6bf9e8c2dc8439d1256385f27a

4 years agoDocs: Change ONAP copyright notice 20/68420/3 v0.7.1
Anil Belur [Wed, 4 Aug 2021 11:12:34 +0000 (21:12 +1000)]
Docs: Change ONAP copyright notice

TSC Approval:
https://wiki.onap.org/display/Meetings/TSC+2021-08-05

Issue-ID: RELENG-3840
Change-Id: I9677ffa06e23c54cb102e976cb17543e60f026d4
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
4 years agoCI: Fix pre-commit tox 21/68421/2
Andrew Grimberg [Wed, 4 Aug 2021 13:56:17 +0000 (06:56 -0700)]
CI: Fix pre-commit tox

The gitlint check is not working properly in CI. This change to tox will
make it so that tox works correctly both locally as well as in CI for
running the gitlint check

Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Change-Id: Ib2bd5b3b0159a5aee27a157b7e16269474681cd8

4 years agoCI: Configure gitlint for Conventional Commits 46/67846/6 v0.7.0
Andrew Grimberg [Mon, 31 May 2021 08:33:41 +0000 (10:33 +0200)]
CI: Configure gitlint for Conventional Commits

Turn on Conventional Commit message subject validation. This will affect
CI specifically, but developers can avoid having CI fail by assuring
that they have installed pre-commit and that they have also run

pre-commit install --hook-type commit-msg

The above is needed because pre-commit does not install commit-msg hooks
by default.

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I670a5099d43683435112bd71670618f569e3843d

4 years agoCI: Update pre-commit checks to latest versions 45/67845/3
Andrew Grimberg [Mon, 31 May 2021 08:40:08 +0000 (10:40 +0200)]
CI: Update pre-commit checks to latest versions

This updates the pre-commit checks to the latest versions of the checks
we're using and fixes a linting issue in our YAML config.

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: Ib0741cb73f678597576c84c3a1064c88931599d4

4 years agoFix: local calls to pre-commit tox profile 18/67818/8
Guillaume Lambert [Wed, 26 May 2021 18:56:25 +0000 (20:56 +0200)]
Fix: local calls to pre-commit tox profile

When run locally, pre-commit tox profile resulted in the following
failure:
$ tox -e pre-commit
[..]
gitlint...........................................................Failed
- hook id: gitlint
- exit code: 254

An error occurred while executing \
'/usr/bin/git config --get user.name': b''

The reason behind is that tox virtualenv cannot directly access the
$HOME shell variable to retrieve the local git configuration unless
this variable is explicitly declared accessible via the passenv tox
parameter.
This is required by gitlint to retrieve the correct git configuration
parameters.

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I99197f88cf4024a5922fe62ec07610921dcf515f

4 years agoCI: kick git hook pre-commit install out from CI 39/67839/1
Guillaume Lambert [Fri, 28 May 2021 12:56:51 +0000 (14:56 +0200)]
CI: kick git hook pre-commit install out from CI

pre-commit hook installation is not required to run pre-commit run jobs.
And thus it is not wishable in CI and morevover in a local context since
no uninstallation method is provided in tox.

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: Idd7f1757b9814edfdeeb4013d086c8c63a6d812d

4 years agoFix: black pre-commit mutable rev configuration 38/67838/4
Guillaume Lambert [Thu, 27 May 2021 20:28:51 +0000 (22:28 +0200)]
Fix: black pre-commit mutable rev configuration

pre-commit black current configuration uses stable for rev, what creates
warnings at pre-commit runtime as discussed at the following URL
https://github.com/psf/black/issues/420

"pre-commit assumes that the value of rev is an immutable ref (such as a
tag or SHA) and will cache based on that. Using a branch name (or HEAD)
for the value of rev is not supported and will only represent the state
of that mutable ref at the time of hook installation (and will NOT
update automatically)" as stated in the official documentation at
https://pre-commit.com/#using-the-latest-version-for-a-repository

rev stable has been replaced here by 21.5b1 in the precommit yaml file
to fix the warning and ensure CI and local pre-commit coherency.

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I577d22e56155212bbb708213efb8f09c0283dd64

4 years agoFix: bandit pre-commit hook exclude regex 32/67832/2
Guillaume Lambert [Thu, 27 May 2021 19:46:58 +0000 (21:46 +0200)]
Fix: bandit pre-commit hook exclude regex

The 'exclude' field in pre-commit hook is a regex, not a glob,
as it is advertised by pre-commit runtime warnings.
"tests/*" matches "tests", "tests/" or "tests//...///" but also any file
or folder, not necessarily at the root of the project, that contains
"tests" in its name.
The right regex to ignore the tests folder at project root is "^test/"

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I74e22bff98c78a7d0dbabac81fdda7b07ed50d4f

4 years agoFix: conf.py imp import deprecation warning 28/67828/2
Guillaume Lambert [Thu, 27 May 2021 19:16:03 +0000 (21:16 +0200)]
Fix: conf.py imp import deprecation warning

According to https://docs.python.org/3/library/imp.html imp is
deprecated in favor of importlib since python 3.4 and imp.find_module
must be replaced by importlib.util.find_spec()

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: If3acf1b9aac6092a7a982598453d586316276dff

4 years agoCI: Decrease Sphinx tox profiles logs verbosity 29/67829/1
Guillaume Lambert [Thu, 27 May 2021 19:23:54 +0000 (21:23 +0200)]
CI: Decrease Sphinx tox profiles logs verbosity

Docs and docs-linkcheck tox profiles are using Sphinx that generates
very verbose logs by default.
Sphinx -q quiet option allows to display only errors and warnings.
Using this option will ease potential gate failures analysis.

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I55c587f2e17625f71e13197ab6f46bf470478738

4 years agoChore: replace py27 tox profile by py3 20/67820/3
Guillaume Lambert [Wed, 26 May 2021 20:02:37 +0000 (22:02 +0200)]
Chore: replace py27 tox profile by py3

py27 was the default generic profile for jobs written in python 2.7 that
is now obsolete.

When forcing basepython version to 3, Jenkins advertises the incoherency
with a warning.

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I10adbc4c1ee7de333e3bdd9a0e79e418ae49d5d7

4 years agoFix: prettier pre-commit configuration 19/67819/4
Guillaume Lambert [Wed, 26 May 2021 19:27:51 +0000 (21:27 +0200)]
Fix: prettier pre-commit configuration

According to https://github.com/prettier/pre-commit the prettier repo to
use in the pre-commit configuration file shifted to the new URL
https://github.com/pre-commit/mirrors-prettier

Also running this hook locally outside of the tox profile resulted in the
following error:

$ git commit --amend
[..]

gitlint...........................................................Passed
prettier..........................................................Failed
- hook id: prettier
- exit code: 2

[error] No matching files. Patterns: .git/COMMIT_EDITMSG

According to https://github.com/pre-commit/mirrors-prettier/issues/5
the reason behind is that prettier can not perform at the [commit-msg]
stage and only at the [commit] stage.
Forcing the stage parameter to [commit] in the hook configuration
managed to fix the issue.

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I1991d5dbab8c6d4ad83e3466fdd4a7bc3cfc865a

4 years agoRefactor: templates to format copyright year 13/67813/3
Guillaume Lambert [Tue, 25 May 2021 19:57:03 +0000 (21:57 +0200)]
Refactor: templates to format copyright year

Up to now, the copyright year was hardcoded in every project template
and had to be updated regularly.
To avoid manual updates and new versions of lfdocs-conf in Pypi,
it is preferable to use python3 datetime import with the format method
to fill and update the year automatically.

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I35a7551a80be470dff5b55e0cabb4944a9bab02c

4 years agoFix: ONAP year in defaults 53/67653/1
Guillaume Lambert [Mon, 10 May 2021 15:19:51 +0000 (17:19 +0200)]
Fix: ONAP year in defaults

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I09d6a3b29064b4c82acbe38af430e1d80cd67dac

4 years agoFix: OpenDaylight years in defaults 52/67652/1
Guillaume Lambert [Mon, 10 May 2021 15:16:47 +0000 (17:16 +0200)]
Fix: OpenDaylight years in defaults

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I3c99d7f281b376be5ac94c7a0db55fff239779ed

4 years agoAdd EPL License Header file 15/66915/6
Trevor Bramwell [Mon, 1 Mar 2021 18:20:04 +0000 (10:20 -0800)]
Add EPL License Header file

This should help contributors have a clearer idea of the licensing of
the code without having to look at setup.cfg or individual file
headers.

Change-Id: I05f702dd026e6656c47e5662cc6be1e4e5427dd8
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
4 years agoUpdate pre-commit hooks with recent version 58/66958/1
Anil Belur [Wed, 3 Mar 2021 23:03:21 +0000 (09:03 +1000)]
Update pre-commit hooks with recent version

- Switch write-good to upstream hook. Upstream PR [1.] is merged
  fixes issues with the write-good npm dependencies.
  [1.] https://github.com/btford/write-good/pull/126
- Swith prettier to the recent version v2.1.2

Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: I286776e837c5147a3fef9c98ce38b5750106a645

5 years agoUpdate Sphinx to 3.2.x 11/65011/1 v0.6.0
Thanh Ha [Tue, 11 Aug 2020 19:51:09 +0000 (15:51 -0400)]
Update Sphinx to 3.2.x

Change-Id: I32184a95a7d1b70774e5705c27f1605ec12d26e2
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
5 years agoPytest is only required for testing 10/65010/1
Thanh Ha [Tue, 11 Aug 2020 19:48:15 +0000 (15:48 -0400)]
Pytest is only required for testing

The end user does not need pytest to be installed to use docs-conf so
remove it from requirements.txt and include it only in test
dependencies in tox.ini.

Change-Id: I02180ba0985e42c9f20ba58a4faf11763a426838
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
5 years agoLimit more-itertools only if pyver is <3.4 09/65009/1
Thanh Ha [Tue, 11 Aug 2020 19:42:51 +0000 (15:42 -0400)]
Limit more-itertools only if pyver is <3.4

As the comment says newer versions of more-itertools requires
Python 3.4 or greater. So only pin the version if that's the case.

Change-Id: I52f0e9d24056321df853e2105e399989d6ae64d5
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
5 years agoMigrate write-good to pre-commit hook 70/64970/1
Thanh Ha [Sat, 8 Aug 2020 19:24:48 +0000 (15:24 -0400)]
Migrate write-good to pre-commit hook

This final patch removes our dependency on the Coala platform and
migrates the write-good linter over to a pre-commit hook. Also resolves
some write-good issues that were ignored on the Coala platform.

Issue: INFRA-2642
Change-Id: I805f840bd651e76f877a9caccf9c4b80561aa01b
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
5 years agoMigrate yamllint to pre-commit hook 69/64969/1
Thanh Ha [Sat, 8 Aug 2020 19:08:14 +0000 (15:08 -0400)]
Migrate yamllint to pre-commit hook

We'd like to move off of Coala as it hasn't had a release in a very
long time. This patch sets up the pre-commit configuration for the
yamllint hook as well as "prettier" for automated file formatting.

This patch also sets YAML indents to 2 as it is the corrent dominant
indent size for the YAML files in this project.

Issue: RELENG-2642
Change-Id: I3827d922023ac18519d94c906b211274ff3e65d9
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
5 years agoMigrate all Python linters to pre-commit 68/64968/1
Thanh Ha [Sat, 8 Aug 2020 19:03:29 +0000 (15:03 -0400)]
Migrate all Python linters to pre-commit

Switch Python related Coala linters over to pre-commit hooks. We would
like to migrate off of the Coala platform as it has not had a release
in years.

Issue: RELENG-2642
Change-Id: Ic6f10682c2d982a7980f1abb58303c56a6086bc8
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
5 years agoAdd black to pre-commit 44/15144/3
Thanh Ha [Sun, 31 Mar 2019 00:48:54 +0000 (20:48 -0400)]
Add black to pre-commit

* Requires Python 3.6 or newer
* Changes pep8 max line length to 88 to match black
* Add .editorconfig to match black config
* Update tox to 2.0 to match black recommended version

This patch uses "black" to automatically manage Python style
conventions so that we don't have to. It utilizes pre-commit
to automatically handle running black on commit so that a
contributor does not have to think about it.

This however means that there is a required install step to
initialize a new dev environment using one of 2 options below:

1) Install pre-commit via your pkg manager then run:

    pre-commit install

2) Use tox to install pre-commit:

    tox -e check-hooks

Change-Id: I527e58b763dc7b0fdfa60fa619c61d2c63356d47
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
5 years agoUpdate formatting with black 43/15143/3
Thanh Ha [Sun, 31 Mar 2019 00:49:11 +0000 (20:49 -0400)]
Update formatting with black

This is an auto-generated patch. Do not update it manually, the
follow up patch contains configuration to utilize pre-commit to
automatically handle code style. This patch should be merged
along with the follow up patch to activate black.

Change-Id: I0267bf7127a320a02dc2dd3d6121d48be8eecbe2
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
5 years agoAdd reference to the project reqs.txt from docs 86/64486/2
Thanh Ha [Thu, 9 Jul 2020 14:51:15 +0000 (10:51 -0400)]
Add reference to the project reqs.txt from docs

The docs/requirements.txt also needs to reference the project's
requirements.txt because this is a meta-docs project.

Change-Id: Ica9466dcd0255f3a4da1ca0ec3de9071dcbb71ce
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
5 years agoFix RTD build failure due to missing pbr 80/64480/2
Thanh Ha [Wed, 8 Jul 2020 22:17:46 +0000 (18:17 -0400)]
Fix RTD build failure due to missing pbr

Add pbr to lfdocs-conf requirements as RTD builds are failing due to
this dependency not being available in RTD. This requirements.txt only
affects docs build and is not a user facing change.

Change-Id: I2565f4d31a05facf25bd6f62ef3fe302d7309ea9
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
5 years agoMerge "Add support for sphinx-tabs extension" v0.5.0
Andrew Grimberg [Wed, 8 Jul 2020 20:28:50 +0000 (20:28 +0000)]
Merge "Add support for sphinx-tabs extension"

5 years agoSwitch oran docs to sphinx_rtd_theme 11/64411/2
Aric Gardner [Thu, 2 Jul 2020 18:12:44 +0000 (14:12 -0400)]
Switch oran docs to sphinx_rtd_theme

This will allow read the docs to insert
the version picker into the oran docs UI

Issue-Id: IT-19981
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Change-Id: Ie3ba2e5bd4f67060caa0886e7f914c67a8a9b5dc

5 years agoAdd support for sphinx-tabs extension 63/64363/1
Thanh Ha [Fri, 26 Jun 2020 18:49:32 +0000 (14:49 -0400)]
Add support for sphinx-tabs extension

This extension allows us to use code tabs in docs.

Change-Id: I5e57e5056d5b6abc05842aa37ad6b7fadfe94ca8
Ref: https://github.com/djungelorm/sphinx-tabs
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
5 years agoMerge "Update Sphinx to 3.0.4"
Eric Ball [Thu, 11 Jun 2020 19:12:32 +0000 (19:12 +0000)]
Merge "Update Sphinx to 3.0.4"

5 years agoMerge "Update pre-commit hooks 2020-06"
Andrew Grimberg [Sat, 6 Jun 2020 14:30:06 +0000 (14:30 +0000)]
Merge "Update pre-commit hooks 2020-06"

5 years agoUpdate Sphinx to 3.0.4 31/64231/1
Thanh Ha [Sat, 6 Jun 2020 14:24:27 +0000 (10:24 -0400)]
Update Sphinx to 3.0.4

Update docs-conf to use the latest Sphinx 3.0.4.

Change-Id: Ic44e8d44a0c68f5f3727f3e1b3ee3368b45d6cd2
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
5 years agoMake GitLint actually run as part of pre-commit 28/64228/1
Thanh Ha [Sat, 6 Jun 2020 14:08:36 +0000 (10:08 -0400)]
Make GitLint actually run as part of pre-commit

The tox environment for pre-commit currently does not actually run
the gitlint hook.

Change-Id: Idbb1f8878dfbc387468dcf9dc874f21a25ffa856
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
5 years agoPrint git-diff when pre-commit fails 27/64227/1
Thanh Ha [Sat, 6 Jun 2020 14:07:50 +0000 (10:07 -0400)]
Print git-diff when pre-commit fails

When pre-commit fails and automatically fixes issues for us in Jenkins
we are not able to see what pre-commit automatically fixed. Adding
--show-diff-on-failure makes pre-commit perform a git-diff immediately
after failing to ensure more useful output is printed to inform the
contributor what changes are needed to pass the check.

Change-Id: I5553c09d6079a71d64eebf3058e0cdec5fdf6b4f
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
5 years agoUpdate pre-commit hooks 2020-06 26/64226/1
Thanh Ha [Sat, 6 Jun 2020 14:06:27 +0000 (10:06 -0400)]
Update pre-commit hooks 2020-06

It's been awhile since we last updated these hooks so let's catch
up with the world.

Change-Id: Ic3fec646f659403b8893134b49320984d412639c
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
5 years agoBump OPNFV Copyright to 2020 77/63477/1
Trevor Bramwell [Mon, 23 Mar 2020 13:53:49 +0000 (06:53 -0700)]
Bump OPNFV Copyright to 2020

Update the OPNFV documentation copyright to 2020.

Change-Id: Ib96ccffce461e57c9ce8d5943021ed0921eec89b
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
5 years agoUpdate Sphinx and bootstrap theme versions 16/15616/3
Thanh Ha [Sat, 11 May 2019 01:38:01 +0000 (21:38 -0400)]
Update Sphinx and bootstrap theme versions

Change-Id: Id81f717315470f9d6dbda5c074c6a1c405c6eefe
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
5 years agoUpgrade sphinx version to 2.2.2 80/62980/1 v0.4.0
Jamo Luhrsen [Wed, 29 Jan 2020 01:13:46 +0000 (17:13 -0800)]
Upgrade sphinx version to 2.2.2

sphinx-build breaks with osx when using the -j flag
for parallel builds, but is handled in v2.2.2:

https://www.sphinx-doc.org/en/master/changes.html

Signed-off-by: Jamo Luhrsen <jluhrsen@gmail.com>
Change-Id: Iaf218a41d8d8ac7b9b014ead0c2c8e117fb83027

5 years agoAdd onap 60/62960/5
Aric Gardner [Mon, 27 Jan 2020 20:01:25 +0000 (15:01 -0500)]
Add onap

Add section for onap
with onap specific configs
taken from
onap/doc/docs/conf.py

Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Change-Id: I0655f21db43a2111db0477f98c592de4d420f850

5 years agoAdd Oran 12/61812/2 v0.3.1
Aric Gardner [Mon, 23 Sep 2019 19:27:08 +0000 (15:27 -0400)]
Add Oran

Oran documentation is WIP
I will need this released
before we can complete this task

Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Change-Id: I3db6fc6644bc9f1f39e8cc6a8918b876902bcefd

6 years agoConfigure basepython to python3 08/16708/1
Thanh Ha [Tue, 27 Aug 2019 19:13:07 +0000 (15:13 -0400)]
Configure basepython to python3

More and more libraries that we are pulling in require Python 3 so
to avoid having to play the pin dependencies whack-a-mole game let's
bump or base python where possible to python3.

Change-Id: Ib25f0290675d2855ed29905331eb76ecbe39fdbf
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
6 years agoPin pygments to 2.3.x 17/15617/1
Thanh Ha [Sat, 11 May 2019 01:49:20 +0000 (21:49 -0400)]
Pin pygments to 2.3.x

Pygments released 2.4.0 which added a python requires that excludes all
versions of Python < 3.5. The LFCI's default Python 3 version is 3.4 so
causes build failure.

Change-Id: Iecf065ccbc9de7782b64955c1cd904dfb1c16b8a
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
6 years agoReplace coala commit-msg hook with pre-commit 45/15145/2 v0.3.0
Thanh Ha [Sun, 31 Mar 2019 01:14:18 +0000 (21:14 -0400)]
Replace coala commit-msg hook with pre-commit

Idea here is to replace the slow coala checker with the
much faster pre-commit hooks in the future as we replace
the different linters we're using via coala with pre-commit
versions.

Using this requires the developer to setup pre-commit on their
local dev environment to initialize this the first time the
contribute to this repo.

Install can be performed via one of the following methods:

1) Install pre-commit from your local package manager then run:

    pre-commit install --hook-type commit-msg

2) Run `tox -e check-hooks`

Change-Id: I5b5d3dcbd7d83e90322f63ba99fa1f76c88ee8ad
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
6 years agoAdd docs-linkcheck to test links 26/15226/1
Thanh Ha [Mon, 8 Apr 2019 03:29:32 +0000 (11:29 +0800)]
Add docs-linkcheck to test links

Change-Id: I83e718791c22311be0d96dd9137308a79c9fd14a
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
6 years agoUpdate Sphinx cfg to use modern features from 1.8 25/15225/1
Thanh Ha [Mon, 8 Apr 2019 03:22:41 +0000 (11:22 +0800)]
Update Sphinx cfg to use modern features from 1.8

* Enable --keep-going mode to fail at end after all warnings printed
* Use parallel auto mode
* Remove unnecessary echo command

Change-Id: I391d5fcc6675d78b0880c01e711b6749cc8174ec
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
6 years agoUpdate Sphinx to version ~1.8 24/15224/2
Thanh Ha [Mon, 8 Apr 2019 02:06:19 +0000 (10:06 +0800)]
Update Sphinx to version ~1.8

Sphinx 1.8 introduces a `--keep-going` parameter which will be handy
for our docs project so that it prints out all docs failures before
failing the build. This allows CI resources to not be wasted by only
printing one failure at a time.

Change-Id: I62c77a94f735fddcb8939aa5dbeb84566ae75d86
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
6 years agoUpdate Python link to save redirect 76/13776/2
Thanh Ha [Mon, 3 Dec 2018 09:07:21 +0000 (17:07 +0800)]
Update Python link to save redirect

This resolves the message we keep seeing when building docs that says
"intersphinx inventory has moved:" for this link.

Change-Id: Ia386c56ba0be2652acf7b34fa6a280ef52918150
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agopin more-intertools 44/14544/2 v0.2.6
Aric Gardner [Tue, 12 Feb 2019 20:39:05 +0000 (15:39 -0500)]
pin more-intertools

Version 6.0.0 is a Python 3-only release
https://github.com/erikrose/more-itertools/releases

error form docs build:
more-itertools requires Python '>=3.4' but the running Python is 2.7.5

Change-Id: I6fa0b0e2bf96bfd66a3980d319570325b51666b9
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
6 years agoPull version strings from PBR 73/12573/3
Thanh Ha [Thu, 13 Sep 2018 15:23:40 +0000 (11:23 -0400)]
Pull version strings from PBR

We've been using PBR for awhile but never updated the docs config to
get it's versioning info from it.

Change-Id: I0884ab9835c0cb763395fc877d04fb0f8ad488b9
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoUse reno for release notes 72/12572/2
Thanh Ha [Thu, 13 Sep 2018 15:18:53 +0000 (11:18 -0400)]
Use reno for release notes

Change-Id: I9f08ef7c04f815203ec3a0aba8284f9ea187cf77
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoRelease lfdocs-conf v0.2.5 71/12571/3 v0.2.5
Thanh Ha [Thu, 13 Sep 2018 14:21:27 +0000 (10:21 -0400)]
Release lfdocs-conf v0.2.5

Change-Id: I60bf2e7dbff7c58785016d6db29b1dd2c1b56b43
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoMove docs reqs back to reqs.txt 70/12570/4
Thanh Ha [Thu, 13 Sep 2018 14:19:54 +0000 (10:19 -0400)]
Move docs reqs back to reqs.txt

We actually depend on lfdocs-conf to ship Sphinx to downstream
consumers removing it from requirements.txt was a bad idea.

Move it back and use skip_install=True in coala to have it skip
installing requirements.txt in the coala testenv.

Change-Id: Ia0739405a4b68dcdb1ca509701745b6dc9828588
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoRelease lfdocs-conf v0.2.4 66/12566/1 v0.2.4
Trevor Bramwell [Wed, 12 Sep 2018 23:26:56 +0000 (16:26 -0700)]
Release lfdocs-conf v0.2.4

Change-Id: I0a29d69864eb734525860538c8bb4b1e1091a410
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
6 years agoPin Sphinx to version <1.8.0 64/12564/5
Thanh Ha [Wed, 12 Sep 2018 21:10:33 +0000 (17:10 -0400)]
Pin Sphinx to version <1.8.0

The new 1.8.0 release of Sphinx is breaking builds in our CI.

In order to get tox runs to pass, the requirement files need to be split
apart and Sphinx version explicitly set for coala. This is due to some
coala bear requiring a version of Sphinx <1.5, which appears to get
pulled in from the base requirements.txt file.

This patch also includes minor clean up of the tox.ini file and a
pyflake validation fix.

Change-Id: Iea9b870270d7a8954f611aaca451de653397397a
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
7 years agoMerge "Setup universal wheel"
Andrew Grimberg [Mon, 20 Aug 2018 15:19:29 +0000 (15:19 +0000)]
Merge "Setup universal wheel"

7 years agoAdd PBR files to .gitignore 25/12325/1
Thanh Ha [Sun, 19 Aug 2018 02:29:15 +0000 (22:29 -0400)]
Add PBR files to .gitignore

Change-Id: I1eefa26c0f62a913150bb2dcea359db5806f2d9e
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoSetup universal wheel 24/12324/1
Thanh Ha [Sun, 19 Aug 2018 02:28:40 +0000 (22:28 -0400)]
Setup universal wheel

Change-Id: I6d868fa70b5843492458ef3754b859e8fd2b47dd
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoSetup PBR 92/12192/1
Thanh Ha [Thu, 9 Aug 2018 22:26:28 +0000 (18:26 -0400)]
Setup PBR

Change-Id: I51d260da9f38fba8851d4d8e72976209f332d842
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoBump lfdocs-conf to 0.3.0-dev 91/12191/1
Thanh Ha [Thu, 9 Aug 2018 22:12:18 +0000 (18:12 -0400)]
Bump lfdocs-conf to 0.3.0-dev

Change-Id: I252780c0c4dcd7ab54e2dbda948e2f1d76a53bf7
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoRelease lfdocs-conf v0.2.3 90/12190/1 v0.2.3
Thanh Ha [Thu, 9 Aug 2018 22:04:35 +0000 (18:04 -0400)]
Release lfdocs-conf v0.2.3

Change-Id: I595f9dcfd47ec0566cbbeaf7dc2474e4a925b5ac
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoMerge "Add "skipsdist = true" to tox.ini"
Thanh Ha [Wed, 25 Jul 2018 13:37:23 +0000 (13:37 +0000)]
Merge "Add "skipsdist = true" to tox.ini"

7 years agoRemove echo of docs path 77/11977/1
Thanh Ha [Wed, 25 Jul 2018 02:25:22 +0000 (22:25 -0400)]
Remove echo of docs path

Since Sphinx 1.7.x Sphinx actually prints the path itself now
so we no longer need this explicit statement.

Change-Id: If2947ac6921fdefb3e51f1910a8f6819ffcf0d52
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd "skipsdist = true" to tox.ini 76/11976/1
Thanh Ha [Wed, 25 Jul 2018 02:23:55 +0000 (22:23 -0400)]
Add "skipsdist = true" to tox.ini

Most of our projects using Sphinx are not Python projects so
building sdist does not make sense for them. Default docs to
skip it since folks working on Python projects are more likely
to know what this parameter means.

Change-Id: Ib38395954c2fba988480cd5774b0e7ac46499b91
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd pre-commit hook for trailing-whitespace 34/11834/1
Thanh Ha [Wed, 18 Jul 2018 01:28:53 +0000 (21:28 -0400)]
Add pre-commit hook for trailing-whitespace

Install using tox:

    tox -e check-hooks

ref: https://pre-commit.com

Change-Id: I80ac7933ee3d350c3d3d860e190b8348efd701e1
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoUpdate lfdocs links to https 55/11355/1
Thanh Ha [Fri, 15 Jun 2018 19:55:28 +0000 (15:55 -0400)]
Update lfdocs links to https

Save us on redirects when fetching the links.

Change-Id: Ic0d5290159a4af5bea54444ba4f106cc28ce3480
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoRelease lfdocs-conf v0.2.2 15/10915/2 v0.2.2
Trevor Bramwell [Thu, 31 May 2018 21:13:05 +0000 (14:13 -0700)]
Release lfdocs-conf v0.2.2

Change-Id: Ie6d8b97d96050553daa6df0b05d3b9500d438216
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
7 years agoMerge "Add flag to fail with warnings in instructions"
Trevor Bramwell [Fri, 11 May 2018 20:00:40 +0000 (20:00 +0000)]
Merge "Add flag to fail with warnings in instructions"

7 years agoAdd common-packer intersphinx mapping 71/10371/1
Thanh Ha [Wed, 2 May 2018 19:35:47 +0000 (15:35 -0400)]
Add common-packer intersphinx mapping

Mapping allows all projects that use lfdocs-conf to be able to
intersphinx with CP without needing to add it to their local
conf.py config.

Change-Id: Icd4e36cc1391c881e3cbb083afc611792a9a4595
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd flag to fail with warnings in instructions 75/10275/1
Thanh Ha [Mon, 30 Apr 2018 19:08:14 +0000 (15:08 -0400)]
Add flag to fail with warnings in instructions

This is good practice so let's make sure our instructions set this
by default with a note in case a project is not ready for such a
configuration.

Change-Id: Ia71ca45af4e219c3eb50667772addbf77a584a82
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoBump version to 0.3.0-dev 87/10187/2
Trevor Bramwell [Fri, 20 Apr 2018 19:18:16 +0000 (12:18 -0700)]
Bump version to 0.3.0-dev

Change-Id: I6561658d5b2194f456865bd2cb729bada2e0e30a
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
7 years agoFail Sphinx build even on warnings 83/10183/2
Thanh Ha [Fri, 20 Apr 2018 18:46:06 +0000 (14:46 -0400)]
Fail Sphinx build even on warnings

Change-Id: I5a6d6827870ff680cfc54c7aea171f1ce544a753
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoRelease lfdocs-conf v0.2.1 88/10188/1 v0.2.1
Trevor Bramwell [Fri, 20 Apr 2018 20:30:21 +0000 (13:30 -0700)]
Release lfdocs-conf v0.2.1

Change-Id: Ia1e8293e7fccf4ed1d02342c15b1197797ab0c9c
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
7 years agoSet _static defaults for LF Projects 86/10186/1
Trevor Bramwell [Fri, 20 Apr 2018 19:14:48 +0000 (12:14 -0700)]
Set _static defaults for LF Projects

Commit: 255554fd868f98da0b8e3a7b9cec959cc7945b59 change the defaults for
'html_favicon', 'html_static_path', and 'html_logo', but did not push
them into LF projects that use them.

Change-Id: I46b5256485443905a520c959e217297901548039
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
7 years agoRelease lfdocs-conf v0.2.0 80/10180/1
Trevor Bramwell [Fri, 20 Apr 2018 18:23:26 +0000 (11:23 -0700)]
Release lfdocs-conf v0.2.0

Change-Id: I10a435c092a5a8db9fd046a7a0c1bc7336e3a7ed
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
7 years agoMerge "Default release to version if not in use"
Thanh Ha [Sat, 7 Apr 2018 15:07:18 +0000 (15:07 +0000)]
Merge "Default release to version if not in use"

7 years agoUse Sphinx defaults when config values are missing 75/9675/1
Trevor Bramwell [Wed, 28 Mar 2018 23:02:21 +0000 (16:02 -0700)]
Use Sphinx defaults when config values are missing

More of these should be verified and moved into defaults.yaml where it
makes sense. We should not change those that make sense such as
'source_suffix', and 'master_doc'.

Change-Id: Iced9fbe6ddd20145d8aa354fdef5edb0638dbbdb
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
7 years agoFix capitalization for Sphinx requirement 74/9674/1
Trevor Bramwell [Wed, 28 Mar 2018 23:00:29 +0000 (16:00 -0700)]
Fix capitalization for Sphinx requirement

Change-Id: I92b089c74f49bcc9d10ec31e2d6a9e500e0803d6
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
7 years agoDefault release to version if not in use 77/9277/1
Thanh Ha [Tue, 6 Mar 2018 19:03:31 +0000 (14:03 -0500)]
Default release to version if not in use

Simplify things by setting release = version for projects who do
not have the clear distinction.

Change-Id: I746f599ffc10012003c4268b1b31094bcaee5a6f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoUpdate URL listed in setup.py 80/8980/1
Trevor Bramwell [Wed, 21 Feb 2018 22:12:51 +0000 (14:12 -0800)]
Update URL listed in setup.py

The current URL 404s while the new URL lists the project patchsets.

Change-Id: I0a9793db118fe60e56db18e624ff59f4336d7daf
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
7 years agoMerge "Add missing links to docs-conf and valid defaults"
Thanh Ha [Wed, 7 Feb 2018 06:34:57 +0000 (06:34 +0000)]
Merge "Add missing links to docs-conf and valid defaults"

7 years agoMerge "Update OPNFV Defaults"
Thanh Ha [Tue, 6 Feb 2018 23:16:20 +0000 (23:16 +0000)]
Merge "Update OPNFV Defaults"

7 years agoMerge "Conditionally import OPNFV Theme"
Thanh Ha [Tue, 6 Feb 2018 23:16:03 +0000 (23:16 +0000)]
Merge "Conditionally import OPNFV Theme"

7 years agoAdd missing links to docs-conf and valid defaults 10/8710/1
Thanh Ha [Tue, 6 Feb 2018 23:13:07 +0000 (18:13 -0500)]
Add missing links to docs-conf and valid defaults

- Link to a list of valid projects
- Link to docs-conf project

Change-Id: I3c0fbd4065a0f3aaf13e15282a9d025f04de3498
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd details on what to include in tox.ini 07/8707/2
Thanh Ha [Tue, 6 Feb 2018 22:43:58 +0000 (17:43 -0500)]
Add details on what to include in tox.ini

Missing information on adding a tox.ini so that the docs can
be generated and tested via `tox -e docs` command.

Change-Id: I900137817032e77109d891c7a194d3f956b1b278
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd a step to test the docs generation 04/8704/2
Thanh Ha [Tue, 6 Feb 2018 22:34:03 +0000 (17:34 -0500)]
Add a step to test the docs generation

Includes details on how to test and review the docs locally.

Change-Id: I0eb3761d0738ee511439b42bb107737fbd517d1b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoConditionally import OPNFV Theme 56/8656/2
Trevor Bramwell [Fri, 2 Feb 2018 19:31:39 +0000 (11:31 -0800)]
Conditionally import OPNFV Theme

When using the 'opnfv' theme, conf.py needs to run the Python code
'sphinx_opnfv_theme.get_html_theme_path()' in order
to determine the location of package data on the filesystem.

Instead of having every project that wants to use the OPNFV theme set
this explicitly in their conf.py, we conditionally import the theme and
execute the code.

Change-Id: Ic686483fd511bf5e321977c2802f4cfb8986c800
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
7 years agoUpdate OPNFV Defaults 57/8657/1
Trevor Bramwell [Fri, 2 Feb 2018 19:32:34 +0000 (11:32 -0800)]
Update OPNFV Defaults

Configures the theme and an extra theme option along with updating the
copyright year and holder to match the current documentation.

Change-Id: Ifff21bd9782112419b8c209fba8d27f1dd7b3a90
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
7 years agoAdd opendaylight defaults 41/8641/1
Thanh Ha [Thu, 1 Feb 2018 20:17:23 +0000 (15:17 -0500)]
Add opendaylight defaults

Change-Id: I8e3ebf8ad5917f5642519b2fea96f0db8861eecd
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd initial RST documentation 29/8529/7
Thanh Ha [Thu, 25 Jan 2018 16:00:03 +0000 (11:00 -0500)]
Add initial RST documentation

Push in some initial documentation to get us started.

Change-Id: I1044204ddaff54ffcd4b24393fd91038dd3e4e28
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd favicon.ico 44/8544/1
Thanh Ha [Fri, 26 Jan 2018 05:54:47 +0000 (00:54 -0500)]
Add favicon.ico

Change-Id: I10cb9c8dd48431ce8ce7b7cdf9dc1ffd6209844a
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoAdd Documentation linting 41/8541/1
Thanh Ha [Thu, 25 Jan 2018 20:06:50 +0000 (15:06 -0500)]
Add Documentation linting

Change-Id: I6e1cfebca8289549222e0879ca30f67067561484
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoRemove weasel word 40/8540/1
Thanh Ha [Thu, 25 Jan 2018 20:24:33 +0000 (15:24 -0500)]
Remove weasel word

Change-Id: I80e97aa6c7b5ad75dc899222eac2ce1335820016
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>