Skip to content

Commit

Permalink
docs: reorganize directories; add goatcounter (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasdavis authored Aug 24, 2023
1 parent 0aeee53 commit b805680
Show file tree
Hide file tree
Showing 22 changed files with 241 additions and 64 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ instance/

# Sphinx documentation
docs/_build/
docs/generated/
docs/**/generated/

# PyBuilder
target/
Expand Down
19 changes: 0 additions & 19 deletions docs/api-collections.rst

This file was deleted.

12 changes: 0 additions & 12 deletions docs/api-inspect.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/api-reducers.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/api-structure.rst

This file was deleted.

29 changes: 29 additions & 0 deletions docs/api/collections.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Collections
-----------

.. currentmodule:: dask_awkward

.. autosummary::
:toctree: generated/

Array

.. autosummary::
:toctree: generated/

Record

.. autosummary::
:toctree: generated/

Scalar

.. raw:: html

<script>
window.goatcounter = {
path: function(p) { return location.host + p }
}
</script>
<script data-goatcounter="https://distdatacats.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
22 changes: 22 additions & 0 deletions docs/api/inspect.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Inspection
----------

.. currentmodule:: dask_awkward

.. autosummary::
:toctree: generated/

partition_compatibility
PartitionCompatibility
necessary_columns
sample

.. raw:: html

<script>
window.goatcounter = {
path: function(p) { return location.host + p }
}
</script>
<script data-goatcounter="https://distdatacats.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
11 changes: 11 additions & 0 deletions docs/api-io.rst → docs/api/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,14 @@ IO
to_delayed
to_parquet
to_json


.. raw:: html

<script>
window.goatcounter = {
path: function(p) { return location.host + p }
}
</script>
<script data-goatcounter="https://distdatacats.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
16 changes: 16 additions & 0 deletions docs/api/reducers.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Reducers
--------

Reduction functions from the awkward-array API. Dedicated Dask
specific API documentation will be added here; for now please consult
the awkward-array API docs.

.. raw:: html

<script>
window.goatcounter = {
path: function(p) { return location.host + p }
}
</script>
<script data-goatcounter="https://distdatacats.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
17 changes: 17 additions & 0 deletions docs/api/structure.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Structure
---------

Structure functions from the awkward-array API. Dedicated Dask
specific API documentation will be added here; for now please consult
the awkward-array API docs.


.. raw:: html

<script>
window.goatcounter = {
path: function(p) { return location.host + p }
}
</script>
<script data-goatcounter="https://distdatacats.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
10 changes: 10 additions & 0 deletions docs/dev-contributing.rst → docs/dev/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,13 @@ rendered.

.. _issuetracker: https://github.com/dask-contrib/dask-awkward/issues
.. _precommit: https://pre-commit.com/

.. raw:: html

<script>
window.goatcounter = {
path: function(p) { return location.host + p }
}
</script>
<script data-goatcounter="https://distdatacats.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
11 changes: 11 additions & 0 deletions docs/dev-releasing.rst → docs/dev/releasing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,14 @@ Merge conda-forge version update
The conda-forge ``regro-cf-autotick-bot`` will create a PR after
detecting the new release on PyPI. You should be able to just merge
the PR when CI passes.


.. raw:: html

<script>
window.goatcounter = {
path: function(p) { return location.host + p }
}
</script>
<script data-goatcounter="https://distdatacats.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
10 changes: 10 additions & 0 deletions docs/gs-install.rst → docs/getting-started/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,13 @@ If you'd like to install dask-awkward from the latest commit to the
.. code:: none
pip install git+https://github.com/dask-contrib/dask-awkward@main
.. raw:: html

<script>
window.goatcounter = {
path: function(p) { return location.host + p }
}
</script>
<script data-goatcounter="https://distdatacats.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
11 changes: 11 additions & 0 deletions docs/gs-intro.rst → docs/getting-started/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,14 @@ For example usage of dask-awkward, `we have a demo repository

.. _Awkward-Array: https://awkward-array.org/
.. _Dask: https://dask.org/


.. raw:: html

<script>
window.goatcounter = {
path: function(p) { return location.host + p }
}
</script>
<script data-goatcounter="https://distdatacats.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
10 changes: 10 additions & 0 deletions docs/gs-limitations.rst → docs/getting-started/limitations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,13 @@ operations under this umbrella:
3. **Things that just won't be implemented**: There will be parts of
the dask-awkward API that we simply cannot implement for lazy
computation!

.. raw:: html

<script>
window.goatcounter = {
path: function(p) { return location.host + p }
}
</script>
<script data-goatcounter="https://distdatacats.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
11 changes: 11 additions & 0 deletions docs/gs-terminology.rst → docs/getting-started/terminology.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,14 @@ In written descriptions, we'll sometimes refer to the awkward-array
Finally, the result of calling the ``compute()`` method on a
``dak.Array`` object will almost always result in an ``ak.Array``
object.


.. raw:: html

<script>
window.goatcounter = {
path: function(p) { return location.host + p }
}
</script>
<script data-goatcounter="https://distdatacats.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
10 changes: 10 additions & 0 deletions docs/ht-behaviors.rst → docs/how-to/behaviors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,13 @@ topic).
result = distance.compute()
.. _behaviors: https://awkward-array.org/doc/main/reference/ak.behavior.html

.. raw:: html

<script>
window.goatcounter = {
path: function(p) { return location.host + p }
}
</script>
<script data-goatcounter="https://distdatacats.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
12 changes: 11 additions & 1 deletion docs/ht-configuration.rst → docs/how-to/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,15 @@ For example, they can be set with the form:
the optimization. If set to ``raise``, raise an exception at
optimization time. If set to ``pass``, silently skip the
optimization. More information can be found in the :ref:`necessary
columns optimization <me-optimization:necessary columns>` section of
columns optimization <more/optimization:necessary columns>` section of
the docs.

.. raw:: html

<script>
window.goatcounter = {
path: function(p) { return location.host + p }
}
</script>
<script data-goatcounter="https://distdatacats.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
12 changes: 11 additions & 1 deletion docs/ht-io.rst → docs/how-to/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,15 @@ awkward Array instances or Python lists.

.. _Uproot: https://github.com/scikit-hep/uproot5

See the :ref:`IO API docs<api-io:IO>` page for more information on the
See the :ref:`IO API docs<api/io:IO>` page for more information on the
possible ways to instantiate a new dask-awkward Array.

.. raw:: html

<script>
window.goatcounter = {
path: function(p) { return location.host + p }
}
</script>
<script data-goatcounter="https://distdatacats.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
43 changes: 27 additions & 16 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,46 +20,57 @@ Table of Contents
:maxdepth: 1
:caption: Getting Started

gs-install.rst
gs-intro.rst
gs-terminology.rst
gs-limitations.rst
getting-started/install.rst
getting-started/intro.rst
getting-started/terminology.rst
getting-started/limitations.rst

.. toctree::
:maxdepth: 1
:caption: How Tos

ht-configuration.rst
ht-io.rst
ht-behaviors.rst
how-to/configuration.rst
how-to/io.rst
how-to/behaviors.rst

.. toctree::
:maxdepth: 1
:caption: Deeper Explanation

me-optimization.rst
me-faq.rst
more/optimization.rst
more/faq.rst

.. toctree::
:maxdepth: 1
:caption: API

api-collections.rst
api-inspect.rst
api-io.rst
api-reducers.rst
api-structure.rst
api/collections.rst
api/inspect.rst
api/io.rst
api/reducers.rst
api/structure.rst

.. toctree::
:maxdepth: 1
:caption: Development

dev-contributing.rst
dev-releasing.rst
dev/contributing.rst
dev/releasing.rst

------------

Support for this work was provided by NSF grant `OAC-2103945 <nsf_>`_.

.. _awkwardarray: https://awkward-array.org/
.. _nsf: https://www.nsf.gov/awardsearch/showAward?AWD_ID=2103945


.. raw:: html

<script>
window.goatcounter = {
path: function(p) { return location.host + p }
}
</script>
<script data-goatcounter="https://distdatacats.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
12 changes: 11 additions & 1 deletion docs/me-faq.rst → docs/more/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ what does this mean?**

You can read more about the optimization and how to configure it
(by either silencing the warning or raise the exception) at
:doc:`this section of the docs <me-optimization>`. Please open an
:doc:`this section of the docs <optimization>`. Please open an
issue on the GitHub issue tracker if you think you've found a
failure in the optimization that should be fixed.

Expand Down Expand Up @@ -49,3 +49,13 @@ on the first partition will occur." what does that mean?**


.. _daskconfig: https://docs.dask.org/en/stable/configuration.html

.. raw:: html

<script>
window.goatcounter = {
path: function(p) { return location.host + p }
}
</script>
<script data-goatcounter="https://distdatacats.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
Loading

0 comments on commit b805680

Please sign in to comment.