Skip to content

Commit e7d9587

Browse files
authored
Merge pull request #96 from machow/docs-homepage
Docs homepage
2 parents 880b79e + 000c78d commit e7d9587

File tree

16 files changed

+476
-197
lines changed

16 files changed

+476
-197
lines changed

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ test:
2424
pytest
2525

2626
docs-build:
27-
cd docs && sphinx-build . ./_build/html $(SPHINX_BUILDARGS)
28-
29-
docs-watch:
30-
cd docs && sphinx-autobuild . ./_build/html $(SPHINX_BUILDARGS)
27+
jb build --builder html docs
3128

3229
docs-clean:
3330
rm -rf docs/_build docs/api/api_card

docs/_config.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Book settings
2+
# Learn more at https://jupyterbook.org/customize/config.html
3+
4+
title: Pins
5+
author: RStudio Inc.
6+
#logo: logo.png
7+
8+
# Force re-execution of notebooks on each build.
9+
# See https://jupyterbook.org/content/execute.html
10+
execute:
11+
execute_notebooks: force
12+
13+
# Define the name of the latex output file for PDF builds
14+
latex:
15+
latex_documents:
16+
targetname: book.tex
17+
18+
# Add a bibtex file so that we can create citations
19+
bibtex_bibfiles:
20+
- references.bib
21+
22+
# Information about where the book exists on the web
23+
repository:
24+
url: https://github.com/machow/pins-python
25+
path_to_book: docs
26+
branch: main
27+
28+
# Add GitHub buttons to your book
29+
# See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository
30+
html:
31+
use_issues_button: true
32+
use_repository_button: true
33+
34+
sphinx:
35+
config:
36+
add_module_names: true
37+
nb_custom_formats:
38+
.Rmd:
39+
- jupytext.reads
40+
- fmt: Rmd
41+
extra_extensions:
42+
- "sphinx.ext.napoleon"
43+
- "sphinx.ext.autodoc"
44+
- "sphinx.ext.autosummary"

docs/_toc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Table of contents
2+
# Learn more at https://jupyterbook.org/customize/toc.html
3+
4+
format: jb-book
5+
root: intro
6+
chapters:
7+
- file: getting_started
8+
- file: api/index.rst

docs/api/boards.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Board
2-
=====
1+
Board Methods
2+
=============
33

44
.. currentmodule:: pins
55

docs/api/constructors.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Board Constructors
2+
==================
3+
4+
.. currentmodule:: pins
5+
6+
.. autosummary::
7+
:toctree: api_card/
8+
9+
~board_folder
10+
~board_local
11+
~board_temp
12+
~board_s3
13+
~board_rsconnect
14+
~board

docs/api/filesystem.rst

Lines changed: 0 additions & 28 deletions
This file was deleted.

docs/api/index.rst

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,50 @@
1-
API
1+
Reference
22
=============
33

4+
Board Pin Methods
5+
-----------------
6+
7+
.. table::
8+
:class: table-align-left
9+
10+
=========================================== =======================================================
11+
:meth:`.pin_read`, :meth:`.pin_write` |read-write|
12+
:meth:`.pin_meta` |arrange|
13+
:meth:`.pin_download`, :meth:`.pin_upload` |select|
14+
:meth:`.pin_versions`, TODO complete |mutate|
15+
:meth:`.pin_list` |summarize|
16+
:meth:`.pin_search` |group_by|
17+
=========================================== =======================================================
18+
19+
.. |read-write| replace:: Read and write objects to and from a board
20+
.. |arrange| replace:: Retrieve metadata for a pin
21+
.. |select| replace:: Upload and download files to and from a board
22+
.. |mutate| replace:: List, delete, and prune pin versions
23+
.. |summarize| replace:: List all pins
24+
.. |group_by| replace:: Search for pins
25+
26+
27+
Board Constructors
28+
------------------
29+
30+
Boards abstract over different storage backends, making it easy to share data in a variety of ways.
31+
32+
.. list-table::
33+
:class: table-align-left
34+
35+
* - :func:`.board_folder`, :func:`.board_local`
36+
- Use a local folder as a board
37+
* - :func:`.board_rsconnect`
38+
- Use RStudio Connect as a board
39+
* - :func:`.board_s3`
40+
- Use an S3 bucket as a board
41+
* - :func:`.board`
42+
- Generic board constructor
43+
44+
445
.. toctree::
546
:maxdepth: 2
647

48+
constructors
749
boards
850
meta
9-
filesystem

docs/conf.py

Lines changed: 0 additions & 90 deletions
This file was deleted.

docs/getting_started.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jupyter:
1212
name: venv-pins-python
1313
---
1414

15-
```{python tags=c(), nbsphinx="hidden"}
15+
```{python tags=c("remove-input"), nbsphinx="hidden"}
1616
import pandas as pd
1717
pd.options.display.max_rows = 25
1818
```

docs/index.rst

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)