-
Notifications
You must be signed in to change notification settings - Fork 4
skpkg: migrate documentation, README, and public static files #43
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 4 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
f2651bd
skpkg: migrate docs
dabeycorn cc278d9
skpkg: add cfg files for authors, changelog, code of conduct, and lic…
dabeycorn e0d8417
skpkg: add news files
dabeycorn 7f8116c
skpkg: add .readthedocs.yml
dabeycorn c9058a2
chore: fix license copyright range
dabeycorn ce1fc79
doc: remove example pkg
dabeycorn 28a1a32
doc: remove getting-started page and all its references
dabeycorn d1f0f84
doc: update doc license copyright range
dabeycorn 4e0a664
doc: remove snippets
dabeycorn 18da82a
news: reupload codecov.rst
dabeycorn d1af542
chore: add back removed authors
dabeycorn 5e99353
doc: replace package logo img with placeholder
dabeycorn 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: 2 | ||
|
||
build: | ||
os: "ubuntu-22.04" | ||
tools: | ||
python: "latest" | ||
|
||
python: | ||
install: | ||
- requirements: requirements/docs.txt | ||
|
||
sphinx: | ||
configuration: doc/source/conf.py |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
============= | ||
Release Notes | ||
Release notes | ||
============= | ||
|
||
.. current developments |
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
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
:target: https://diffpy.github.io/diffpy.nmf_mapping | ||
: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.nmf_mapping | ||
.. |PyPI| image:: https://img.shields.io/pypi/v/diffpy.nmf_mapping | ||
:target: https://pypi.org/project/diffpy.nmf_mapping/ | ||
|
||
.. |PythonVersion| image:: https://img.shields.io/pypi/pyversions/diffpy.nmf_mapping | ||
|
@@ -105,15 +105,14 @@ and run the following :: | |
Getting Started | ||
--------------- | ||
|
||
|
||
You may consult our `online documentation <https://diffpy.github.io/diffpy.nmf_mapping>`_ for tutorials and API references. | ||
|
||
Support and Contribute | ||
---------------------- | ||
|
||
`Diffpy user group <https://groups.google.com/g/diffpy-users>`_ is the discussion forum for general questions and discussions about the use of diffpy.nmf_mapping. Please join the diffpy.nmf_mapping users community by joining the Google group. The diffpy.nmf_mapping project welcomes your expertise and enthusiasm! | ||
|
||
If you see a bug or want to request a feature, please `report it as an issue <https://github.com/diffpy/diffpy.nmf_mapping/issues>`_ and/or `submit a fix as a PR <https://github.com/diffpy/diffpy.nmf_mapping/pulls>`_. You can also post it to the `Diffpy user group <https://groups.google.com/g/diffpy-users>`_. | ||
If you see a bug or want to request a feature, please `report it as an issue <https://github.com/diffpy/diffpy.nmf_mapping/issues>`_ and/or `submit a fix as a PR <https://github.com/diffpy/diffpy.nmf_mapping/pulls>`_. | ||
|
||
Feel free to fork the project and contribute. To install diffpy.nmf_mapping | ||
in a development mode, with its sources being directly used by Python | ||
|
@@ -141,4 +140,9 @@ Before contributing, please read our `Code of Conduct <https://github.com/diffpy | |
Contact | ||
------- | ||
|
||
For more information on diffpy.nmf_mapping please visit the project `web-page <https://diffpy.github.io/>`_ or email Prof. Simon Billinge at [email protected]. | ||
For more information on diffpy.nmf_mapping please visit the project `web-page <https://diffpy.github.io/>`_ or email Simon J.L. Billinge group at [email protected]. | ||
|
||
Acknowledgements | ||
---------------- | ||
|
||
``diffpy.nmf_mapping`` is built and maintained with `scikit-package <https://scikit-package.github.io/scikit-package/>`_. |
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,31 @@ | ||
.. _example_package documentation: | ||
dabeycorn marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
|title| | ||
======= | ||
|
||
.. |title| replace:: diffpy.nmf_mapping.example_package package | ||
|
||
.. automodule:: diffpy.nmf_mapping.example_package | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
|foo| | ||
----- | ||
|
||
.. |foo| replace:: diffpy.nmf_mapping.example_package.foo module | ||
|
||
.. automodule:: diffpy.nmf_mapping.example_package.foo | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
|bar| | ||
----- | ||
|
||
.. |bar| replace:: diffpy.nmf_mapping.example_package.bar module | ||
|
||
.. automodule:: diffpy.nmf_mapping.example_package.foo | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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 |
---|---|---|
@@ -1,28 +1,30 @@ | ||
:tocdepth: -1 | ||
|
||
diffpy.nmf-mapping package | ||
dabeycorn marked this conversation as resolved.
Show resolved
Hide resolved
|
||
========================== | ||
|title| | ||
======= | ||
|
||
.. |title| replace:: diffpy.nmf_mapping package | ||
|
||
.. automodule:: diffpy.nmf_mapping | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Subpackages | ||
----------- | ||
|
||
.. toctree:: | ||
diffpy.nmf_mapping.example_package | ||
|
||
Submodules | ||
---------- | ||
|
||
diffpy.nmf_mapping.nmf_mapping_code module | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
.. automodule:: diffpy.nmf_mapping.nmf_mapping_code | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|module| | ||
-------- | ||
|
||
diffpy.nmf_mapping.main module | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
.. |module| replace:: diffpy.nmf_mapping.example_submodule module | ||
|
||
.. automodule:: diffpy.nmf_mapping.main | ||
.. automodule:: diffpy.nmf_mapping.example_submodule | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
:tocdepth: -1 | ||
dabeycorn marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
.. 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 ``/docs/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`. |
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
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.
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.