-
Notifications
You must be signed in to change notification settings - Fork 8
Add examples of extension libraries. #191
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
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
89d959f
Download all sphinx design examples
Revathyvenugopal162 1bf5a32
Add the examples in doc
Revathyvenugopal162 969e089
Move the scripts
Revathyvenugopal162 bdd5a64
Update ci/cd
Revathyvenugopal162 5ac3ee7
Modify workflow
Revathyvenugopal162 b47b03f
Modify the images
Revathyvenugopal162 a85ed66
Add additional lines
Revathyvenugopal162 32e087c
Add the docs source
Revathyvenugopal162 dc596d7
Merge branch 'main' into feat/add-examples
Revathyvenugopal162 566ef1b
Add the scripts inside conf file
Revathyvenugopal162 e53fa9c
Merge branch 'feat/add-examples' of https://github.com/ansys/ansys-sp…
Revathyvenugopal162 5be58a4
Modify workflow
Revathyvenugopal162 335a28f
Add the sphinx jinja
Revathyvenugopal162 5295be5
Add the sentance case
Revathyvenugopal162 c865199
Add the docstrings
Revathyvenugopal162 509e65a
Merge branch 'main' into feat/add-examples
Revathyvenugopal162 c59a171
Add example dir
Revathyvenugopal162 197be4b
Merge branch 'feat/add-examples' of https://github.com/ansys/ansys-sp…
Revathyvenugopal162 6da723d
Add the docstrings
Revathyvenugopal162 e22f265
remove all warnings
Revathyvenugopal162 59908c5
remove all unnecessary files
Revathyvenugopal162 ae4b0eb
Merge branch 'main' into feat/add-examples
Revathyvenugopal162 77957ab
Merge branch 'main' into feat/add-examples
Revathyvenugopal162 b374a71
Update .github/workflows/ci_cd.yml
Revathyvenugopal162 07d2dc7
Update doc/source/examples/examples.rst
Revathyvenugopal162 3a901ce
Add the sphinx card
Revathyvenugopal162 aaca7c8
Add the sphinx card ref
Revathyvenugopal162 11a8ba2
Add the table in examples
Revathyvenugopal162 6b51add
Typo error
Revathyvenugopal162 179c4a9
Typo error
Revathyvenugopal162 b0fc2f4
Add the sphinx styles
Revathyvenugopal162 b5d429b
Update src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/js/tabl…
Revathyvenugopal162 9c1177f
Add the table color
Revathyvenugopal162 dc2a28f
Merge branch 'feat/add-examples' of https://github.com/ansys/ansys-sp…
Revathyvenugopal162 e467bf8
Add the toml and arrange css styles
Revathyvenugopal162 1d01456
Modify the parameters
Revathyvenugopal162 ddcf7f9
Resolves vale error
Revathyvenugopal162 e154ea7
Add the docs for css
Revathyvenugopal162 9bb9985
change the docs
Revathyvenugopal162 29879dd
change the table
Revathyvenugopal162 aea7ad4
Update .github/workflows/ci_cd.yml
RobPasMue File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| ======== | ||
| Examples | ||
| ======== | ||
| This show how the different extensions get rendered in ansys-sphinx-theme. This is for testing purpose. | ||
|
|
||
| .. grid:: 2 | ||
|
|
||
| .. grid-item:: | ||
| .. card:: Sphinx design | ||
| :link: sphinx-design | ||
| :link-type: ref | ||
|
|
||
| Examples of the sphinx design rendered using the `ansys-sphinx-theme`. | ||
|
|
||
| .. grid-item:: | ||
| .. card:: Table | ||
| :link: table | ||
| :link-type: ref | ||
|
|
||
| Examples of tables with JavaScript and RST rendered using the `ansys-sphinx-theme`. | ||
| It also recommends improving documentation with RST. | ||
|
|
||
|
|
||
| .. toctree:: | ||
| :hidden: | ||
| :maxdepth: 2 | ||
|
|
||
| sphinx-design | ||
| table |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| """Sample functions for ansys-sphinx-theme.""" | ||
|
|
||
|
|
||
| def func(arg1, arg2): | ||
| """Summary line <should be one one line>. | ||
| Extended description of function. Can span multiple lines and | ||
| provides a general overview of the function. | ||
| .. warning:: | ||
| Use the ``.. warning::`` directive within the doc-string for any | ||
| warnings you would like to explicitly state. For example, if | ||
| this method will be deprecated in the next release. | ||
| Parameters | ||
| ---------- | ||
| arg1 : int | ||
| Description of arg1. | ||
| arg2 : str | ||
| Description of arg2. | ||
| Returns | ||
| ------- | ||
| bool | ||
| Description of return value. | ||
| Examples | ||
| -------- | ||
| >>> func(1, 'foo') | ||
| True | ||
| """ | ||
| return True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| .. _sphinx-design: | ||
|
|
||
| Sphinx design | ||
| ============= | ||
| The rendering of sphinx design with ansys sphinx theme. | ||
| To access the full documentation for the sphinx design package, | ||
| please refer `sphinx design <https://sphinx-design.readthedocs.io/en/latest/index.html>`_. | ||
|
|
||
| .. jinja:: examples | ||
|
|
||
| {% for filename in inputs_examples %} | ||
| {% set title = filename.split('.')[0] %} | ||
|
|
||
| {{ title[0].upper() }}{{ title[1:] }} | ||
| {{ '~' * (title | length) }} | ||
|
|
||
| .. literalinclude:: sphinx_examples/{{ filename }} | ||
| :language: rst | ||
|
|
||
| This directive renders the as follow: | ||
|
|
||
| .. include:: sphinx_examples/{{ filename }} | ||
|
|
||
| {% endfor %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| * | ||
| !.gitignore | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,109 @@ | ||
| .. _table: | ||
|
|
||
| Table | ||
| ===== | ||
| The table directive with ansys sphinx theme allows for rendering of tables. | ||
| There are different types of tables, such as the data table, longtable-centered, | ||
| and table-centered, each serving different purposes. | ||
|
|
||
| Data table | ||
| ---------- | ||
| This is an example of a data table that can be rendered using the table directive. | ||
| It consists of three columns representing the variables A, B, and A and B respectively. | ||
| Each row represents a different combination of True and False for variables A and B. | ||
| The `datatable` class can be used to style the data table. | ||
|
|
||
| .. code:: rst | ||
| .. table:: | ||
| :class: datatable | ||
| ===== ===== ======= | ||
| A B A and B | ||
| ===== ===== ======= | ||
| False False False | ||
| True False False | ||
| False True False | ||
| True True True | ||
| ===== ===== ======= | ||
| .. table:: | ||
| :class: datatable | ||
|
|
||
| ===== ===== ======= | ||
| A B A and B | ||
| ===== ===== ======= | ||
| False False False | ||
| True False False | ||
| False True False | ||
| True True True | ||
| ===== ===== ======= | ||
|
|
||
| Longtable-centered | ||
| ------------------ | ||
| The longtable-centered class can be used to create a table that | ||
| spans multiple pages and is centered horizontally. | ||
| This is useful for tables that have a large number of rows or columns. | ||
| Here is an example of a longtable-centered: | ||
|
|
||
| .. code:: rst | ||
| .. table:: | ||
| :class: longtable-centered | ||
| +---------------------------+-------------------+ | ||
| | | MAPDL Command | | ||
| +===========================+===================+ | ||
| | **GUI commands** | * ``*ASK`` | | ||
| | | | | ||
| | **GUI commands** | * ``*ASK`` | | ||
| | | | | ||
| | **GUI commands** | * ``*ASK`` | | ||
| +---------------------------+-------------------+ | ||
| .. table:: | ||
| :class: longtable-centered | ||
|
|
||
| +---------------------------+-------------------+ | ||
| | | MAPDL Command | | ||
| +===========================+===================+ | ||
| | **GUI commands** | * ``*ASK`` | | ||
| | | | | ||
| | **GUI commands** | * ``*ASK`` | | ||
| | | | | ||
| | **GUI commands** | * ``*ASK`` | | ||
| +---------------------------+-------------------+ | ||
|
|
||
| Table-centered | ||
| -------------- | ||
| The table-centered class can be used to create a table that is horizontally centered. | ||
| This is useful for tables that have only a few columns. | ||
| Here is an example of a table-centered: | ||
|
|
||
| .. code:: rst | ||
| .. table:: | ||
| :class: table-centered | ||
| +---------------------------+-------------------+ | ||
| | | MAPDL Command | | ||
| +===========================+===================+ | ||
| | **GUI commands** | * ``*ASK`` | | ||
| +---------------------------+-------------------+ | ||
| | **GUI commands** | * ``*ASK`` | | ||
| +---------------------------+-------------------+ | ||
| | **GUI commands** | * ``*ASK`` | | ||
| +---------------------------+-------------------+ | ||
| .. table:: | ||
| :class: table-centered | ||
|
|
||
| +---------------------------+-------------------+ | ||
| | | MAPDL Command | | ||
| +===========================+===================+ | ||
| | **GUI commands** | * ``*ASK`` | | ||
| +---------------------------+-------------------+ | ||
| | **GUI commands** | * ``*ASK`` | | ||
| +---------------------------+-------------------+ | ||
| | **GUI commands** | * ``*ASK`` | | ||
| +---------------------------+-------------------+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,5 +32,3 @@ Consider using the ``conf.py`` for this repository: | |
| .. toctree:: | ||
| :hidden: | ||
| :maxdepth: 2 | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,3 +10,4 @@ Ansys Sphinx Theme documentation |version| | |
|
|
||
| getting_started/index.rst | ||
| user_guide/index.rst | ||
| examples/index.rst | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,4 +2,5 @@ ANSYS | |
| Ansys | ||
| ansys | ||
| Ansys Sphinx Theme | ||
| boolean | ||
| boolean | ||
| datatable | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.