Skip to content

Commit

Permalink
Update readme and tweak docs config (#89)
Browse files Browse the repository at this point in the history
* Update readme and tweak docs config

* Add chnagelog
  • Loading branch information
samaloney authored Apr 28, 2024
1 parent d8ca4e1 commit d72c4c1
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 122 deletions.
10 changes: 7 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# IDE
.idea
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down Expand Up @@ -151,6 +149,12 @@ docs/api
docs/whatsnew/latest_changelog.txt
stixpy/version.py
htmlcov/
sg_execution_times.rst

.DS_Store

# IDE
.idea

#stixpy
# stixpy
stixpy/data/*.fits
6 changes: 5 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ build:
os: ubuntu-22.04
tools:
python: "3.9"
apt_packages:
- graphviz

# Build documentation in the docs/ directory with Sphinx
sphinx:
builder: html
configuration: docs/conf.py
fail_on_warning: true

# Optionally build your docs in additional formats such as PDF and ePub
# Optionally, build your docs in additional formats such as PDF and ePub
formats: []

# Optionally set the version of Python and requirements required to build your docs
Expand Down
70 changes: 24 additions & 46 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
STIX Analysis Software
----------------------
stixpy Analysis Software
========================

.. image:: http://img.shields.io/badge/powered%20by-SunPy-orange.svg?style=flat
|Powered By| |Build Status| |Doc Status| |Python Versions|

.. |Powered By| image:: https://img.shields.io/badge/powered%20by-SunPy-orange.svg?style=flat
:target: http://www.sunpy.org
:alt: Powered by SunPy Badge

.. image:: https://readthedocs.org/projects/stixpy/badge/?version=latest
:target: https://stixpy.readthedocs.io/en/latest/?badge=latest
.. |Build Status| image:: https://github.com/TCDSolar/stixpy/actions/workflows/ci.yaml/badge.svg
:target: https://github.com/TCDSolar/stixpy/actions/workflows/ci.yaml
:alt: Build Status

.. |Doc Status| image:: https://readthedocs.org/projects/stixpy/badge/?version=stable
:target: http://stixpy.readthedocs.io/en/latest/?badge=stable
:alt: Documentation Status

.. image:: https://github.com/samaloney/stixpy/actions/workflows/ci.yml/badge.svg
:target: https://github.com/samaloney/stixpy/actions/workflows/ci.yaml
:alt: Build Status
.. |Python Versions| image:: https://img.shields.io/pypi/pyversions/stixpy
:target: https://pypi.python.org/pypi/stixpy
:alt: Python Versions

Spectrometer Telescope for Imaging X-rays (STIX) onboard Solar Orbiter (SO) python analysis software
stixpy is an open source Python library for analysis of Spectrometer Telescope for Imaging X-rays (STIX) onboard Solar Orbiter (SO)
data

Installation
------------
Expand All @@ -22,47 +29,18 @@ It is strongly advised that you use and isolated environment through python's ve

.. code-block::
pip install git+https://github.com/samaloney/stixpy
pip install stixpy
License
-------
Usage
-----

This project is Copyright (c) STIX Team and licensed under
the terms of the BSD 3-Clause license. This package is based upon
the `Openastronomy packaging guide <https://github.com/OpenAstronomy/packaging-guide>`_
which is licensed under the BSD 3-clause licence. See the licenses folder for
more information.
Getting Help
------------


Contributing
------------
When you are interacting with the community you are asked to
follow the `Code of Conduct`_.

We love contributions! STIXpy is open source,
built on open source, and we'd love to have you hang out in our community.

**Imposter syndrome disclaimer**: We want your help. No, really.

There may be a little voice inside your head that is telling you that you're not
ready to be an open source contributor; that your skills aren't nearly good
enough to contribute. What could you possibly offer a project like this one?

We assure you - the little voice in your head is wrong. If you can write code at
all, you can contribute code to open source. Contributing to open source
projects is a fantastic way to advance one's coding skills. Writing perfect code
isn't the measure of a good developer (that would disqualify all of us!); it's
trying to create something, making mistakes, and learning from those
mistakes. That's how we all improve, and we are happy to help others learn.

Being an open source contributor doesn't just mean writing code, either. You can
help out by writing documentation, tests, or even giving feedback about the
project (and yes - that includes giving feedback about the contribution
process). Some of these contributions may be the most valuable to the project as
a whole, because you're coming to the project with fresh eyes, so you can see
the errors and assumptions that seasoned contributors have glossed over.

Note: This disclaimer was originally written by
`Adrienne Lowe <https://github.com/adriennefriend>`_ for a
`PyCon talk <https://www.youtube.com/watch?v=6Uj746j9Heo>`_, and was adapted by
STIXpy based on its use in the README file for the
`MetPy project <https://github.com/Unidata/MetPy>`_.
.. _Code of Conduct: http://docs.sunpy.org/en/stable/coc.html
71 changes: 0 additions & 71 deletions azure-pipelines.yml

This file was deleted.

1 change: 1 addition & 0 deletions changelog/89.doc.rst]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update README, fix graphviz RTD configuration, configure theme logo text.
9 changes: 9 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
# Disable google style docstrings
napoleon_google_docstring = False

# until sphinx-gallery / sphinx is fixed https://github.com/sphinx-doc/sphinx/issues/12300
suppress_warnings = ["config.cache"]

# -- Options for intersphinx extension ---------------------------------------

# Example configuration for intersphinx: refer to the Python standard library.
Expand All @@ -85,6 +88,12 @@

html_theme = "pydata_sphinx_theme"

html_theme_options = {
"logo": {
"text": "stixpy"
},
}

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ build-backend = 'setuptools.build_meta'
changelog_skip_label = "No Changelog Entry Needed"
help_url = "https://github.com/TCDSolar/stixpy/blob/main/changelog/README.rst"

changelog_missing_long = "There isn't a changelog file in this pull request. Please add a changelog file to the `changelog/` directory following the instructions in the changelog [README](https://https://github.com/TCDSolar/stixpy/blob/main/changelog/README.rst)."
changelog_missing_long = "There isn't a changelog file in this pull request. Please add a changelog file to the `changelog/` directory following the instructions in the changelog [README](https://github.com/TCDSolar/stixpy/blob/main/changelog/README.rst)."

type_incorrect_long = "The changelog file you added is not one of the allowed types. Please use one of the types described in the changelog [README](https://github.com/TCDSolar/stixpy/blob/main/changelog/README.rst)"

Expand Down

0 comments on commit d72c4c1

Please sign in to comment.