-
Notifications
You must be signed in to change notification settings - Fork 38
skpkg: migrate documentation, README, and public static files #283
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
Changes from 10 commits
b974e79
0929828
8c23dff
24a9128
2ec518f
9f89747
a9e4894
e0e456c
d57fbcc
d8ee2b0
1cc30b2
daf5c8b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| ============= | ||
| Release Notes | ||
| Release notes | ||
| ============= | ||
|
|
||
| .. current developments | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,7 +8,7 @@ | |
| :target: https://diffpy.github.io/diffpy.pdfgui | ||
| :height: 100px | ||
|
|
||
| |PyPi| |Forge| |PythonVersion| |PR| | ||
| |PyPI| |Forge| |PythonVersion| |PR| | ||
|
|
||
| |CI| |Codecov| |Black| |Tracking| | ||
|
|
||
|
|
@@ -26,7 +26,7 @@ | |
|
|
||
| .. |PR| image:: https://img.shields.io/badge/PR-Welcome-29ab47ff | ||
|
|
||
| .. |PyPi| image:: https://img.shields.io/pypi/v/diffpy.pdfgui | ||
| .. |PyPI| image:: https://img.shields.io/pypi/v/diffpy.pdfgui | ||
| :target: https://pypi.org/project/diffpy.pdfgui/ | ||
|
|
||
| .. |PythonVersion| image:: https://img.shields.io/pypi/pyversions/diffpy.pdfgui | ||
|
|
@@ -35,7 +35,7 @@ | |
| .. |Tracking| image:: https://img.shields.io/badge/issue_tracking-github-blue | ||
| :target: https://github.com/diffpy/diffpy.pdfgui/issues | ||
|
|
||
| Graphical user interface program for structure refinements to atomic | ||
| Graphical user interface program for structure refinements to the atomic | ||
| pair distribution function. | ||
|
|
||
| For users who do not have the expertise or necessity for command | ||
|
|
@@ -167,4 +167,9 @@ Before contributing, please read our `Code of Conduct <https://github.com/diffpy | |
| Contact | ||
| ------- | ||
|
|
||
| For more information on diffpy.pdfgui please visit the project `web-page <https://diffpy.github.io/>`_ or email Prof. Simon Billinge at [email protected]. | ||
| For more information on diffpy.pdfgui please visit the project `web-page <https://diffpy.github.io/>`_ or email Simon Billinge at [email protected]. | ||
|
|
||
| Acknowledgements | ||
| ---------------- | ||
|
|
||
| ``diffpy.pdfgui`` is built and maintained with `scikit-package <https://scikit-package.github.io/scikit-package/>`_. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| .. _example_package documentation: | ||
|
||
|
|
||
| |title| | ||
| ======= | ||
|
|
||
| .. |title| replace:: diffpy.pdfgui.example_package package | ||
|
|
||
| .. automodule:: diffpy.pdfgui.example_package | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: | ||
|
|
||
| |foo| | ||
| ----- | ||
|
|
||
| .. |foo| replace:: diffpy.pdfgui.example_package.foo module | ||
|
|
||
| .. automodule:: diffpy.pdfgui.example_package.foo | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: | ||
|
|
||
| |bar| | ||
| ----- | ||
|
|
||
| .. |bar| replace:: diffpy.pdfgui.example_package.bar module | ||
|
|
||
| .. automodule:: diffpy.pdfgui.example_package.foo | ||
| :members: | ||
| :undoc-members: | ||
| :show-inheritance: | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| :tocdepth: -1 | ||
|
||
|
|
||
| .. index:: getting-started | ||
|
|
||
| .. _getting-started: | ||
|
|
||
| ================ | ||
| Getting started | ||
| ================ | ||
|
|
||
| Here are some example templates provided to help you get started with writing your documentation. You can use these templates to create your own documentation. | ||
|
|
||
| Reuse ``.rst`` files across multiple pages | ||
| ------------------------------------------ | ||
|
|
||
| Here is how you can reuse a reusable block of ``.rst`` files across multiple pages: | ||
|
|
||
| .. include:: snippets/example-table.rst | ||
|
|
||
| .. warning:: | ||
|
|
||
| Ensure that the ``.rst`` file you are including is not too long. If it is too long, it may be better to split it into multiple files and include them separately. | ||
|
|
||
| Refer to a specific section in the documentation | ||
| ------------------------------------------------ | ||
|
|
||
| You can use the ``ref`` tag to refer to a specific section in the documentation. For example, you can refer to the section below using the ``:ref:`` tag as shown :ref:`here <attach-image>`. | ||
|
|
||
| .. note:: | ||
|
|
||
| Please check the raw ``.rst`` file of this page to see the exact use of the ``:ref:`` tag. | ||
|
|
||
| Embed your code snippets in the documentation | ||
| --------------------------------------------- | ||
|
|
||
| Here is how you can write a block of code in the documentation. You can use the ``code-block`` directive to write a block of code in the documentation. For example, you can write a block of code as shown below: | ||
|
|
||
| .. code-block:: bash | ||
| # Create a new environment, without build dependencies (pure Python package) | ||
| conda create -n <package_name>-env python=3.13 \ | ||
| --file requirements/test.txt \ | ||
| --file requirements/conda.txt | ||
| # Create a new environment, with build dependencies (non-pure Python package) | ||
| conda create -n <package_name>-env python=3.13 \ | ||
| --file requirements/test.txt \ | ||
| --file requirements/conda.txt \ | ||
| --file requirements/build.txt | ||
| # Activate the environment | ||
| conda activate <package_name>_env | ||
| # Install your package locally | ||
| # `--no-deps` to NOT install packages again from `requirements.pip.txt` | ||
| pip install -e . --no-deps | ||
| # Run pytest locally | ||
| pytest | ||
| # ... run example tutorials | ||
| .. _attach-image: | ||
|
|
||
| Attach an image to the documentation | ||
| ------------------------------------ | ||
|
|
||
| Here is how you attach an image to the documentation. The ``/doc/source/img/scikit-package-logo-text.png`` example image is provided in the template. | ||
|
|
||
| .. image:: ./img/scikit-package-logo-text.png | ||
| :alt: codecov-in-pr-comment | ||
| :width: 400px | ||
| :align: center | ||
|
|
||
|
|
||
| Other useful directives | ||
| ----------------------- | ||
|
|
||
| Here is how you can do menu selection :menuselection:`Admin --> Settings` and display labels for buttons like :guilabel:`Privacy level`. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| .. list-table:: 5 levels of reusing/sharing code | ||
|
||
| :widths: 5 15 40 40 | ||
| :header-rows: 1 | ||
|
|
||
| * - Level | ||
| - Name | ||
| - Scope | ||
| - How to setup | ||
| * - 1 | ||
| - ``function`` | ||
| - Reuse code in the single file. | ||
| - See Level 1 tutorial | ||
| * - 2 | ||
| - ``module`` | ||
| - Reuse code across files. | ||
| - See Level 2 tutorial | ||
| * - 3 | ||
| - ``workspace`` | ||
| - Reuse code across project folders. | ||
| - ``package create workspace`` | ||
| * - 4 | ||
| - ``system`` | ||
| - Reuse code across any files in the computer. | ||
| - ``package create system`` | ||
| * - 5 | ||
| - ``public`` | ||
| - Share code as publicly installable package. | ||
| - ``package create public`` | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| **Added:** | ||
|
|
||
| * <news item> | ||
|
|
||
| **Changed:** | ||
|
|
||
| * <news item> | ||
|
|
||
| **Deprecated:** | ||
|
|
||
| * <news item> | ||
|
|
||
| **Removed:** | ||
|
|
||
| * <news item> | ||
|
|
||
| **Fixed:** | ||
|
|
||
| * Support ``scikit-package`` Level 5 standard (https://scikit-package.github.io/scikit-package/). | ||
|
|
||
| **Security:** | ||
|
|
||
| * <news item> |
Uh oh!
There was an error while loading. Please reload this page.