Skip to content

Commit

Permalink
Merge pull request #20 from pysat/add_docs
Browse files Browse the repository at this point in the history
DOCS: added basic doc files
  • Loading branch information
aburrell authored Feb 27, 2024
2 parents 9028cd9 + cbd44fd commit 5b971d4
Show file tree
Hide file tree
Showing 12 changed files with 160 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .zenodo.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"affiliation": "WORKPLACE",
"name": "AUTHOR LAST, AUTHOR FIRST, AUTHOR MIDDLE",
"orcid": "ORCID"
},
}
]
}
1 change: 1 addition & 0 deletions docs/acknowledgements.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. mdinclude:: ../ACKNOWLEDGEMENTS.md
30 changes: 30 additions & 0 deletions docs/citing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Citation Guidelines
===================

When publishing work that uses PACKAGE, please cite the package and
any package it depends on that plays an important role in your analysis.
Specifying which version of PACKAGE used will also improve the
reproducibility of your presented results.

PACKAGENAME
-----------

The most recent citation can be found at `Zenodo <link>`_. The examples here
are from the first release.

* Surname, E. G., et al. (20XX).
PACKAGENAME: Initial Release (Version 0.0.1). Zenodo.
doi:10.xxxx/zenodo.xxxxxxx

.. code-block:: latex

@Misc{PACKAGE,
author = {Surname, E. G. and Coauthor, I. E.},
title = {PACKAGENAME: Initial Release},
year = {20XX},
date = {20XX-XX-XX},
url = {https://github.com/PACKAGE_REPOSITORY},
doi = {10.xxxx/zenodo.xxxxxxx},
publisher = {Zenodo},
version = {v0.0.1},
}
5 changes: 1 addition & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
doc_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(doc_dir, "..", project, "version.txt"), "r") as fin:
version = fin.read().strip()
release = '{:s}-alpha'.format(version) # Include alpha/beta/rc tags.

# The language for content autogenerated by Sphinx. Refer to documentation
Expand Down Expand Up @@ -184,4 +181,4 @@
epub_exclude_files = ['search.html']

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {'https://docs.python.org/': None}
intersphinx_mapping = {'<name>': ('https://docs.python.org/', None)}
6 changes: 6 additions & 0 deletions docs/develop_guide.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Guide for Developers
====================

.. toctree::
develop_guide/code_of_conduct.rst
develop_guide/contributing.rst
1 change: 1 addition & 0 deletions docs/develop_guide/code_of_conduct.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. mdinclude:: ../../CODE_OF_CONDUCT.md
1 change: 1 addition & 0 deletions docs/develop_guide/contributing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. mdinclude:: ../../CONTRIBUTING.md
Binary file added docs/figures/poweredbypysat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions docs/history.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. _hist:

.. mdinclude:: ../CHANGELOG.md
27 changes: 27 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.. PACKAGE documentation main file. Remember that it should at least
contain the root `toctree` directive.
Welcome to the PACKAGENAME documentation
========================================

This documentation describes the PACKAGENAME module, which contains
routines to DO AMAZING THINGS.

.. toctree::
:maxdepth: 2

overview.rst
installation.rst
citing.rst
develop_guide.rst
history.rst
acknowledgements.rst



Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
80 changes: 80 additions & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
.. _install:

Installation
============

The following instructions will allow you to install PACKAGE


.. _install-prereq:

Prerequisites
-------------

.. image:: figures/poweredbypysat.png
:width: 150px
:align: right
:alt: powered by pysat Logo, blue planet with orbiting python


PACKAGE uses common Python modules, as well as modules developed by
and for the Space Physics community. This module officially supports
Python 3.6+.

============== =================
Common modules Community modules
============== =================
numpy pysat >= 3.1.0
pandas
xarray
============== =================


.. _install-opt:


Installation Options
--------------------


.. _install-opt-pip:

PyPi
^^^^
All official pysatSpaceWeather releases are `available <link>`_ through the
PyPi package manager.
::


pip install PACKAGENAME



.. _install-opt-git:

GitHub
^^^^^^
You can keep up to date with the latest changes at the GitHub repository.

1. Clone the git repository
::


git clone https://github.com/PACKAGE_REPOSITORY


2. Install PACKAGENAME:
Change directories into the repository folder and run the setup.py file.
There are a few ways you can do this:

A. Install on the system (will install locally without root privileges)::


python -m build
pip install .

B. Install with the intent to develop locally::


python -m build
pip install -e .
9 changes: 9 additions & 0 deletions docs/overview.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Overview
========

DESCRIPTION OF PACKAGE

.. image:: figures/packagename_logo.jpg
:width: 400px
:align: center
:alt: PACKAGENAME Logo, A planet with a python orbitting and the module name superimposed.

0 comments on commit 5b971d4

Please sign in to comment.