Skip to content

Commit f158cf0

Browse files
Revathyvenugopal162RobPasMuejorgepiloto
authored
DOC: enable panels in documentation landing page (#104)
Co-authored-by: Roberto Pastor Muela <[email protected]> Co-authored-by: Jorge Martínez <[email protected]>
1 parent a2051db commit f158cf0

File tree

9 files changed

+57
-5
lines changed

9 files changed

+57
-5
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ repos:
99
rev: 5.10.1
1010
hooks:
1111
- id: isort
12+
args:
13+
- --line-length=88
1214

1315
- repo: https://github.com/PyCQA/flake8
14-
rev: 5.0.4
16+
rev: 6.0.0
1517
hooks:
1618
- id: flake8
1719

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.. readme_common_begins
12
PyAnsys Actions
23
===============
34
|pyansys| |MIT|
@@ -14,4 +15,5 @@ A repository containing a collection of `GitHub Workflows
1415
<https://docs.github.com/en/actions/using-workflows/about-workflows>`_ to be
1516
reused by projects in the PyAnsys ecosystem.
1617

18+
.. readme_common_ends
1719
For more information on available actions and how to use them, see `actions.docs.pyansys.com <https://actions.docs.pyansys.com>`_ .

build-wheelhouse/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ runs:
5757
shell: bash
5858
run: pip install ${{ env.install_target }}
5959

60-
- name: "Verify libray is properly installed and get its version number"
60+
- name: "Verify library is properly installed and get its version number"
6161
shell: bash
6262
run: |
6363
echo "library_version=$(python -c "from ${{ inputs.library-namespace }} import __version__; print(__version__)")" >> $GITHUB_ENV

doc/source/build-actions/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Here is a code sample for using this action:
5555
uses: pyansys/actions/build-wheelhouse@main
5656
with:
5757
library-name: "<ansys-product-library>"
58-
library-namespace: "<ansys.product.libray>"
58+
library-namespace: "<ansys.product.library>"
5959
operating-system: ${{ matrix.os }}
6060
python-version: ${{ matrix.python-version }}
6161

doc/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"sphinx.ext.autosectionlabel",
4343
"sphinx_copybutton",
4444
"sphinx_jinja",
45+
"sphinx_design",
4546
]
4647

4748
# Specify the static path

doc/source/doc-actions/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ for which the documentation is being build is not public yet. For those cases, t
128128
multi-version mechanism (which the previous actions assume) is not allowed.
129129

130130
The way PyAnsys libraries handle documentation deployment while being private/internal is
131-
by releasing its documentation to dedicated repositories: one for the dev documetation, and
131+
by releasing its documentation to dedicated repositories: one for the dev documentation, and
132132
a different one for the stable (or internally released) documentation. This action intends
133133
to allow users to specify which repository they intend to release their docs to.
134134

doc/source/index.rst

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,50 @@
11
.. include:: ../../README.rst
2+
:start-after: .. readme_common_begins
3+
:end-before: .. readme_common_ends
4+
5+
For more information on available actions and how to use them,
6+
see each card below:
7+
8+
.. grid:: 1 1 2 2
9+
:gutter: 2
10+
11+
.. grid-item-card:: :octicon:`codescan-checkmark` Style actions
12+
:link: style-actions/index
13+
:link-type: doc
14+
15+
Style actions verify code and documentation.
16+
17+
.. grid-item-card:: :octicon:`tools` Tests actions
18+
:link: tests-actions/index
19+
:link-type: doc
20+
21+
Tests actions allow to run the test suite.
22+
23+
.. grid-item-card:: :octicon:`book` Docs actions
24+
:link: doc-actions/index
25+
:link-type: doc
26+
27+
Documentation actions build and deploy the documentation.
28+
29+
.. grid-item-card:: :octicon:`key` Licence actions
30+
:link: licenses-actions/index
31+
:link-type: doc
32+
33+
Licence actions sallows to verify that the project’s dependencies only contain valid licenses.
34+
35+
36+
.. grid-item-card:: :octicon:`package` Build actions
37+
:link: build-actions/index
38+
:link-type: doc
39+
40+
Build actions allow for building artifacts.
41+
42+
.. grid-item-card:: :octicon:`eye` Release actions
43+
:link: release-actions/index
44+
:link-type: doc
45+
46+
Release actions provide for releasing the various artifacts.
47+
248

349
.. toctree::
450
:hidden:

requirements/requirements_doc.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ pyyaml==6.0.0
33
Sphinx==5.3.0
44
sphinx-copybutton==0.5.1
55
sphinx-jinja==2.0.2
6+
sphinx_design==0.3.0
67
tabulate==0.9.0

scripts/version_mapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def update_switch_version_file(
9393
# Update JSON file with the new content
9494
json.dump(new_content, switcher_file, indent=4)
9595

96-
# Use the latest stable verion for formatting the announcement
96+
# Use the latest stable version for formatting the announcement
9797
announcement_link = (
9898
f"<a href='{cname}/release/{latest_stable_version}'>{latest_stable_version}</a>"
9999
)

0 commit comments

Comments
 (0)