Skip to content

Commit

Permalink
Update docs (#627)
Browse files Browse the repository at this point in the history
Co-authored-by: Oliver Ruebel <[email protected]>
  • Loading branch information
rly and oruebel authored Jun 9, 2021
1 parent 1b084d5 commit 36db0e8
Show file tree
Hide file tree
Showing 11 changed files with 238 additions and 167 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# HDMF Changelog

## HDMF 2.5.8 (Upcoming)

### Minor improvements
- Improve Sphinx documentation. @rly (#627)

## HDMF 2.5.7 (June 4, 2021)

### Bug fix
Expand Down
27 changes: 18 additions & 9 deletions docs/CONTRIBUTING.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
How to contribute to HDMF software and documents
=================================================
Contributing Guide
==================

.. _sec-code-of-conduct:

Expand Down Expand Up @@ -87,32 +87,41 @@ From your local copy directory, use the following commands.
Styleguides
-----------

Python Code Styleguide
^^^^^^^^^^^^^^^^^^^^^^

Before you create a Pull Request, make sure you are following the HDMF style guide (PEP8_).
To check whether your code conforms to the HDMF style guide, simply run the flake8_ tool in the project's root
directory.

.. _flake8: http://flake8.pycqa.org/en/latest/
.. _PEP8: https://www.python.org/dev/peps/pep-0008/

.. code::
$ flake8
Git Commit Message Styleguide
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

* Use the present tense ("Add feature" not "Added feature")
* The first should be short and descriptive.
* Additional details may be included in further paragraphs.
* If a commit fixes an issues, then include "Fix #X" where X is the number of the issue.
* If a commit fixes an issue, then include "Fix #X" where X is the number of the issue.
* Reference relevant issues and pull requests liberally after the first line.

Documentation Styleguide
^^^^^^^^^^^^^^^^^^^^^^^^

All documentations is written in reStructuredText (RST) using Sphinx.

Python Code Styleguide
^^^^^^^^^^^^^^^^^^^^^^

Python coding style is checked via ``flake8`` for automatic checking of PEP8 style during pull requests.

Endorsement
-----------

Please do not take working with an organization (e.g., during a hackathon or via GitHub) as an endorsement of your work or your organization. It's okay to say e.g., “We worked with XXXXX to advance science” but not e.g., “XXXXX supports our work on HDMF”.”

License and Copyright
=======================
---------------------

See the `license <https://raw.githubusercontent.com/hdmf-dev/hdmf/dev/license.txt>`_ files for details about the copyright and license.

Expand Down
7 changes: 7 additions & 0 deletions docs/source/_static/theme_overrides.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.wy-side-nav-search .wy-dropdown>a.icon img.logo, .wy-side-nav-search>a.icon img.logo {
width: 150px;
}

.wy-nav-content {
max-width: 1000px !important;
}
2 changes: 1 addition & 1 deletion docs/source/building_api.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Building API classes
Building API Classes
====================

After you have written an extension, you will need a Pythonic way to interact with the data model. To do this,
Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
# 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".
# html_static_path = ['_static']
html_static_path = ['_static']

# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
Expand Down Expand Up @@ -325,5 +325,5 @@ def skip(app, what, name, obj, skip, options):

def setup(app):
app.connect('builder-inited', run_apidoc)
app.add_css_file("theme_overrides.css") # overrides for wide tables in RTD theme
app.add_css_file("theme_overrides.css")
app.connect("autodoc-skip-member", skip)
2 changes: 1 addition & 1 deletion docs/source/extensions.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.. _extending-standard:

Extending standards
Extending Standards
===================

The following page will discuss how to extend a standard using HDMF.
Expand Down
129 changes: 0 additions & 129 deletions docs/source/getting_started.rst

This file was deleted.

42 changes: 21 additions & 21 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
.. HDMF documentation master file, created by
sphinx-quickstart on Thu Nov 17 10:41:07 2016.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
The Hierarchical Data Modeling Framework
========================================

Expand All @@ -17,55 +12,60 @@ with the intention of providing it as an open-source tool for other scientific c

If you use HDMF in your research, please use the following citation:

A. J. Tritt et al., "HDMF: Hierarchical Data Modeling Framework for Modern Science Data Standards,"
2019 IEEE International Conference on Big Data (Big Data), Los Angeles, CA, USA, 2019, pp. 165-179,
doi: 10.1109/BigData47090.2019.9005648.
A. J. Tritt et al., "HDMF: Hierarchical Data Modeling Framework for Modern Science Data Standards,"
2019 IEEE International Conference on Big Data (Big Data), Los Angeles, CA, USA, 2019, pp. 165-179,
doi: 10.1109/BigData47090.2019.9005648.


.. toctree::
:hidden:
:maxdepth: 2
:caption: Getting Started

getting_started
contributing
install_users
tutorials/index

.. toctree::
:hidden:
:maxdepth: 2
:caption: Overview

overview_intro
overview_software_architecture
overview_citing


.. toctree::
:hidden:
:maxdepth: 2
:caption: Resources

tutorials/index
api_docs
extensions
building_api
validation
export
api_docs
software_process
validation

.. toctree::
:hidden:
:caption: For Developers

install_developers
contributing
make_roundtrip_test
software_process

.. toctree::
:hidden:
:maxdepth: 2
:caption: For Maintainers

make_a_release
update_requirements

.. toctree::
:hidden:
:maxdepth: 2
:caption: Legal

legal

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

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
Loading

0 comments on commit 36db0e8

Please sign in to comment.