Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable CI checkers #3160

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/.wordlist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
anuket
Baraque
Kubernetes
Lakelse
OpenStack
sexualized
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not know what is the use of this file, but this word is a bit strange here. ..

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's part of the code of conduct document

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is clear. I just do not know if .worldlist.txt contains words what we would like to allow, like Baraque or words what we would like to avoid.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that list contains the additional words not included in the standard English Aspell dictionary.

Snezka
socio
tsc
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ doc/.DS_Store
_build/
.tox/
.vscode/
*.dic
4 changes: 4 additions & 0 deletions .rstcheck.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[rstcheck]
report_level=ERROR
ignore_directives=bibliography,
ignore_roles=cite:p,
21 changes: 21 additions & 0 deletions .spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# SPDX-license-identifier: Apache-2.0
##############################################################################
# Copyright (c) 2022 Samsung Corporation
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

matrix:
- name: markdown
dictionary:
wordlists:
- .github/.wordlist.txt
pipeline:
- pyspelling.filters.html:
sources:
- '_build/html/*.html'
aspell:
ignore-case: true
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# SPDX-license-identifier: Apache-2.0
##############################################################################
# Copyright (c) 2022 Samsung Corporation
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

.PHONY: deploy
deploy:
tox -e docs
python -m http.server --directory _build/html/
3 changes: 2 additions & 1 deletion doc/gov/chapters/chapter09.rst
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ experience. This survey will be used to measure the feasibility, utility, and ef
installation/configuration methods and RC-1 Test case efficacy. The survey will be in an Agile User Story format. The
Table below provides an example of the survey questions:

![\ **Table 1:** Survey/Questionnaire example](../figures/Table 1-1.png)
.. image:: ../figures/Table_1-1.png
:alt: "Table 1: Survey/Questionnaire example"

**Table 1:** Survey/Questionnaire example

Expand Down
File renamed without changes
2 changes: 2 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
sphinx!=1.6.6,!=1.6.7,!=2.1.0,!=3.0.0,!=3.4.2 # BSD
doc8 # Apache-2.0
sphinx-material
pyspelling # MIT
rstcheck[sphinx] # MIT
4 changes: 4 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ skipsdist = true

[testenv:docs]
basepython = python3.10
allowlist_externals = bash
deps =
-chttps://opendev.org/openstack/requirements/raw/branch/stable/zed/upper-constraints.txt
-r{toxinidir}/test-requirements.txt
commands =
bash -c "find {toxinidir} -not -path {toxinidir}/.tox/\* \
-name \*.rst -type f -print0 | xargs -0 rstcheck"
sphinx-build -W --keep-going -W -T -b html -D language=en doc _build/html
sphinx-build -W --keep-going -W -b linkcheck doc _build/html
pyspelling -c .spellcheck.yml