-
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 6 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 |
|---|---|---|
| @@ -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 |
|---|---|---|
|
|
@@ -4,94 +4,49 @@ | |
|
|
||
| .. |title| replace:: diffpy.pdfgui documentation | ||
|
|
||
| diffpy.pdfgui - GUI for PDF simulation and structure refinement. | ||
| ``diffpy.pdfgui`` - Graphical user interface program for structure refinements to atomic pair distribution function. | ||
|
||
|
|
||
| | Software version |release| | ||
| | Last updated |today| | ||
| | Last updated |today|. | ||
| For users who do not have the expertise or necessity for command | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. keep this |
||
| line analysis, PDFgui is a convenient and easy to use graphical front | ||
| end for the PDFfit2 refinement program. It is capable of full-profile | ||
| fitting of the atomic pair distribution function (PDF) derived from x-ray | ||
| or neutron diffraction data and comes with built in graphical and structure | ||
| visualization capabilities. | ||
| =============== | ||
| Getting started | ||
| =============== | ||
|
|
||
| PDFgui is a friendly interface to the PDFfit2 refinement engine, with many | ||
| powerful extensions. To get started, please open the :ref:`manual` | ||
| (:download:`pdf <pdfgui.pdf>`) from the help menu or follow the :ref:`tutorial`. | ||
| Welcome to the ``diffpy.pdfgui`` documentation! | ||
|
|
||
| To get started, please visit the :ref:`Getting started <getting-started>` page. | ||
|
|
||
| ======= | ||
| Authors | ||
| ======= | ||
|
|
||
| DiffPy was initiated as part of the Distributed Data Analysis of Neutron | ||
| Scattering Experiments (DANSE) project, funded by the National Science | ||
| Foundation under grant DMR-0520547. Any opinions, findings, and conclusions or | ||
| recommendations expressed in this material are those of the author(s) | ||
| and do not necessarily reflect the views of the NSF. | ||
|
|
||
| The main contributors to this package were | ||
|
|
||
| Chris Farrow, | ||
| Jiwu Liu, | ||
| Pavol Juhas, | ||
| Dmitriy Bryndin | ||
|
|
||
| Other current and former contributors of the DiffPy project include | ||
|
|
||
| Simon Billinge, | ||
| Chris Farrow, | ||
| Emil Bozin, | ||
| Wenduo Zhou, | ||
| Peng Tian | ||
|
|
||
| The DiffPy team is part of the Billinge Group at Columbia University in New York, | ||
| within the Department of Applied Physics and Applied Mathematics. | ||
|
|
||
| For a detailed list of contributors see | ||
| ``diffpy.pdfgui`` is developed by Simon J.L. Billinge group. The maintainer for this project is Simon J.L. Billinge group. For a detailed list of contributors see | ||
| https://github.com/diffpy/diffpy.pdfgui/graphs/contributors. | ||
|
|
||
| ========= | ||
| Reference | ||
| ========= | ||
|
|
||
| If you use this program for a scientific research that leads to publication, | ||
| we ask that you acknowledge use of the program by citing the following paper | ||
| in your publication: | ||
|
|
||
| C L Farrow, P Juhas, J W Liu, D Bryndin, E S Božin, | ||
| J Bloch, Th Proffen and S J L Billinge, `PDFfit2 and PDFgui: | ||
| computer programs for studying nanostructure in crystals <https://doi.org/10.1088/0953-8984/19/33/335219>`_, | ||
| J. Phys.: Condens. Matter 19 (2007) 335219. | ||
|
|
||
| ============ | ||
| Installation | ||
| ============ | ||
|
|
||
| See the `README <https://github.com/diffpy/diffpy.pdfgui#installation>`_ | ||
| file included with the distribution. | ||
|
|
||
| ======== | ||
| Tutorial | ||
| ======== | ||
|
|
||
| The tutorial for the package can be found here: | ||
|
|
||
| .. toctree:: | ||
| ================ | ||
| Acknowledgements | ||
| ================ | ||
|
|
||
| tutorial | ||
| ``diffpy.pdfgui`` is built and maintained with `scikit-package <https://scikit-package.github.io/scikit-package/>`_. | ||
|
|
||
| ================= | ||
| Table of contents | ||
| ================= | ||
| .. toctree:: | ||
| :titlesonly: | ||
| :maxdepth: 2 | ||
|
|
||
| examples | ||
| extras | ||
| license | ||
| release | ||
| getting-started | ||
| Package API <api/diffpy.pdfgui> | ||
| release | ||
| license | ||
|
|
||
| ======= | ||
| Indices | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.