-
Notifications
You must be signed in to change notification settings - Fork 0
Doc/overall review #11
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
13 commits
Select commit
Hold shift + click to select a range
f20a063
Edits
PipKat 60c4aef
Merge branch 'main' of https://github.com/ansys-internal/pyansys-quar…
PipKat 19b45b3
Move doc content from README.MD to reStructuredText files and create …
PipKat 4deef8c
Resolve Vale issues
PipKat 15d8600
Fix code style issue
PipKat 495d8ae
Add "disable" back to Vale's accept list
PipKat 8b07b85
fix: update the readme and pdf links in example
Revathyvenugopal162 7bcc9aa
docs: updated the example pdf
Revathyvenugopal162 f762920
Update doc/source/user-guide.rst
Revathyvenugopal162 5ce9fe5
docs: add contributing section
Revathyvenugopal162 56046da
docs: update the heading
Revathyvenugopal162 e2f9aa8
docs: update the contribute
Revathyvenugopal162 39f0bd2
Edits to contributing.rst and for where PDF files of cheat sheets are…
PipKat 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 was deleted.
Oops, something went wrong.
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,62 @@ | ||
| PyAnsys Quarto Cheat Sheet | ||
| ========================== | ||
| |pyansys| |GH-CI| |MIT| | ||
|
|
||
| .. |pyansys| image:: https://img.shields.io/badge/Py-Ansys-ffc107.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAABDklEQVQ4jWNgoDfg5mD8vE7q/3bpVyskbW0sMRUwofHD7Dh5OBkZGBgW7/3W2tZpa2tLQEOyOzeEsfumlK2tbVpaGj4N6jIs1lpsDAwMJ278sveMY2BgCA0NFRISwqkhyQ1q/Nyd3zg4OBgYGNjZ2ePi4rB5loGBhZnhxTLJ/9ulv26Q4uVk1NXV/f///////69du4Zdg78lx//t0v+3S88rFISInD59GqIH2esIJ8G9O2/XVwhjzpw5EAam1xkkBJn/bJX+v1365hxxuCAfH9+3b9/+////48cPuNehNsS7cDEzMTAwMMzb+Q2u4dOnT2vWrMHu9ZtzxP9vl/69RVpCkBlZ3N7enoDXBwEAAA+YYitOilMVAAAAAElFTkSuQmCC | ||
| :target: https://docs.pyansys.com/ | ||
| :alt: PyAnsys | ||
|
|
||
| .. |GH-CI| image:: https://github.com/ansys-internal/pyansys-quarto-cheatsheet/actions/workflows/ci_cd.yml/badge.svg | ||
| :target: https://github.com/ansys-internal/pyansys-quarto-cheatsheet/actions/workflows/ci_cd.yml | ||
| :alt: GH-CI | ||
|
|
||
| .. |MIT| image:: https://img.shields.io/badge/License-MIT-yellow.svg | ||
| :target: https://opensource.org/blog/license/mit | ||
| :alt: MIT | ||
|
|
||
|
|
||
| Overview | ||
| ======== | ||
|
|
||
| PyAnsys Quarto Cheat Sheet is an extension for using `Quarto <https://quarto.org/>`_, an open | ||
| source scientific and technical publishing system, to render cheat sheets from plain text | ||
| markdown and code. | ||
|
|
||
| Documentation and issues | ||
| ------------------------ | ||
|
|
||
| Documentation for the latest stable release of PyAnsys Quarto Cheat Sheet is hosted | ||
| at `PyAnsys Quarto Cheat Sheet documentation <https://quarto-cheat-sheet.docs.pyansys.com/>`_. | ||
|
|
||
| The documentation has these sections: | ||
|
|
||
| - `Getting started <https://quarto-cheat-sheet.docs.pyansys.com/version/dev/getting_started.html>`_: Learn | ||
| how to install PyAnsys Quarto Cheat Sheet in user mode. | ||
| - `User guide <https://quarto-cheat-sheet.docs.pyansys.com/version/dev/user_guide.html>`_: Understand how | ||
| to render a PDF file of a cheat sheet and use its YAML configuration file to format it. | ||
| - `Examples <https://quarto-cheat-sheet.docs.pyansys.com/version/dev/examples.html>`_: Explore examples | ||
| that show how to use PyAnsys Quarto Cheat Sheet to create and render your own cheat sheets. | ||
| - `Contribute <https://quarto-cheat-sheet.docs.pyansys.com/version/dev/contributing.html>`_: Learn how to | ||
| contribute to the PyAnsys Quarto Cheat Sheet codebase or documentation. | ||
|
|
||
| In the upper right corner of the documentation's title bar, there is an option | ||
| for switching from viewing the documentation for the latest stable release | ||
| to viewing the documentation for the development version or previously | ||
| released versions. | ||
|
|
||
| On the `PyAnsys Quarto Cheat Sheet Issues <https://github.com/ansys-internal/pyansys-quarto-cheatsheet/issues>`_ | ||
| page, you can create issues to report bugs and request new features. On the | ||
| `Discussions <https://discuss.ansys.com/>`_ page on the Ansys Developer portal, | ||
| you can post questions, share ideas, and get community feedback. | ||
|
|
||
| If you have general questions about the PyAnsys ecosystem, email | ||
| `pyansys.core@ansys.com <pyansys.core@ansys.com>`_. If your | ||
| question is specific to PyAnsys Quarto Cheat Sheet, ask your | ||
| question in an issue as described in the previous paragraph. | ||
|
|
||
| License | ||
| ------- | ||
|
|
||
| PyAnsys Quarto Cheat Sheet is licensed under the `MIT License <https://github.com/ansys-internal/pyansys-quarto-cheatsheet/blob/main/LICENSE>`_. | ||
|
|
||
| PyAnsys Quarto Cheat Sheet makes no commercial claim over Ansys whatsoever. | ||
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 |
|---|---|---|
|
|
@@ -27,5 +27,3 @@ Vale.Terms = NO | |
|
|
||
| # Apply the following styles | ||
| BasedOnStyles = Vale, Google | ||
|
|
||
| Google.Headings = NO | ||
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,127 @@ | ||
| .. _contribute: | ||
|
|
||
| Contribute | ||
| ########## | ||
|
|
||
| Overall guidance on contributing to a PyAnsys library appears in the | ||
| `Contributing <https://dev.docs.pyansys.com/how-to/contributing.html>`_ topic | ||
| in the *PyAnsys developer's guide*. Ensure that you are thoroughly familiar | ||
| with this guide before attempting to contribute to PyAnsys Quarto Cheat Sheet. | ||
|
|
||
| The following contribution information is specific to PyAnsys Quarto Cheat Sheet. | ||
|
|
||
| Install in developer mode | ||
| ------------------------- | ||
|
|
||
| Installing PyAnsys Quarto Cheat Sheet in developer mode allows you to modify | ||
| and enhance the source. | ||
|
|
||
| To clone and install the latest version of PyAnsys Quarto Cheat Sheet in | ||
| development mode, run these commands: | ||
|
|
||
| .. code:: | ||
|
|
||
| git clone https://github.com/ansys-internal/pyansys-quarto-cheatsheet.git | ||
| cd pyansys-quarto-cheatsheet | ||
|
|
||
| # Install the package in development mode | ||
| quarto install extension . --no-prompt | ||
|
|
||
|
|
||
| Adhere to code style | ||
| -------------------- | ||
|
|
||
| PyAnsys Quarto Cheat Sheet follows the PEP8 standard as outlined in | ||
| `PEP 8 <https://dev.docs.pyansys.com/coding-style/pep8.html>`_ in | ||
| the *PyAnsys developer's guide* and implements style checking using | ||
| `pre-commit <https://pre-commit.com/>`_. | ||
|
|
||
| To ensure your code meets minimum code styling standards, run these commands:: | ||
|
|
||
| pip install pre-commit | ||
| pre-commit run --all-files | ||
|
|
||
| You can also install this as a pre-commit hook by running this command:: | ||
|
|
||
| pre-commit install | ||
|
|
||
| This way, it's not possible for you to push code that fails the style checks:: | ||
|
|
||
| $ pre-commit install | ||
| $ git commit -am "feat: Added my cool features" | ||
| check yaml...............................................................Passed | ||
| trim trailing whitespace.................................................Passed | ||
| fix end of files.........................................................Passed | ||
| check for merge conflicts................................................Passed | ||
| Validate GitHub Workflows................................................Passed | ||
| Add License Headers......................................................Passed | ||
|
|
||
| Render a cheat sheet | ||
| -------------------- | ||
| .. note:: | ||
|
|
||
| To render a cheat sheet to a PDF file locally, you must have Quarto installed. For | ||
| installation information, see `Getting Started <https://quarto.org/docs/getting-started/installation.html>`_ | ||
| in the Quarto documentation. | ||
|
|
||
| To render a cheat sheet to a PDF file, run a command like this one:: | ||
|
|
||
| quarto render examples/cheat_sheet.qmd | ||
|
|
||
| The preceding command saves the PDF file for the ``cheat_sheet.qmd`` file in | ||
| the ``Examples`` directory to the ``doc/_build`` directory by default. If you | ||
| want to change the output directory, you can modify the ``_quarto.yml`` file. | ||
| For more information, see :ref:`quarto-yml`. | ||
|
|
||
| Build the documentation | ||
| ----------------------- | ||
| To build the documentation locally, you must run this command to install the | ||
| documentation dependencies in the ``requirements_docs.txt`` file in the ``requirements`` | ||
| directory:: | ||
|
|
||
| pip install -r requirements/requirements_doc.txt | ||
|
|
||
| Then, navigate to the ``doc`` directory and run this command | ||
|
|
||
| .. tab-set:: | ||
|
|
||
| .. tab-item:: Linux/macOS | ||
|
|
||
| .. code:: | ||
|
|
||
| make html | ||
|
|
||
| .. tab-item:: Windows | ||
|
|
||
| .. code:: | ||
|
|
||
| ./make.bat html | ||
|
|
||
| The documentation is built in the ``doc/_build/html`` directory. | ||
|
|
||
| You can clean the documentation build by running this command: | ||
|
|
||
| .. tab-set:: | ||
|
|
||
| .. tab-item:: Linux/macOS | ||
|
|
||
| .. code:: | ||
|
|
||
| make clean | ||
|
|
||
| .. tab-item:: Windows | ||
|
|
||
| .. code:: | ||
|
|
||
| ./make.bat clean | ||
|
|
||
| Post issues | ||
| ----------- | ||
|
|
||
| Use the `PyAnsys Quarto Cheat Sheet Issues <https://github.com/ansys-internal/pyansys-quarto-cheatsheet/issues>`_ | ||
| page to report bugs and request new features. When possible, use the issue templates provided. | ||
| If your issue does not fit into one of these templates, click the link for opening a blank issue. | ||
|
|
||
| If you have general questions about the PyAnsys ecosystem, email `pyansys.core@ansys.com <pyansys.core@ansys.com>`_. | ||
| If your question is specific to PyAnsys Quarto Cheat Sheet, ask your question in an issue as described | ||
| in the previous paragraph. |
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.