Skip to content

Commit

Permalink
Merge pull request #12 from choldgraf/contribute
Browse files Browse the repository at this point in the history
馃摎 DOCS: contributing docs
  • Loading branch information
choldgraf committed Aug 13, 2020
2 parents ff16f82 + 11aa137 commit 8722cbc
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docs/contribute.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Contributing to Sphinx-Thebe

Thanks for your interest in contributing to `sphinx-thebe`, your contributions are welcome and appreciated 馃帀. This page contains some information to help you get started.

## Contributing guide

See the [ExecutableBooks developer guidelines](https://executablebooks.org/en/latest/contributing.html) for conventions and practices around developing `sphinx-thebe`.


## Repository structure

`sphinx-thebe` is a lightweight extensions for Sphinx to activate and configure the [thebe javascript package](https://thebe.readthedocs.io/en/latest/). Most of the heavy lifting is done by that package, while this package mostly just integrates it with Sphinx and provides a button that can activate `thebe` under the hood.

- The sphinx package is contained in `sphinx_thebe/`. The `__init__.py` file contains the code that activates and loads the proper CSS and JS when Sphinx is run.
- CSS and Javascript assets are in `sphinx_thebe/_static`. These handle the activation of `thebe` on a page via a button-click, and also make minor modification to the page's DOM to make it work well with `thebe`.

## Installation for development

To install `sphinx-thebe` for development clone and install `sphinx-thebe` locally:

```bash
git clone https://github.com/executablebooks/sphinx-thebe
cd sphinx-thebe
pip install -e .[sphinx,testing]
```

When you build Sphinx documentation with `sphinx-thebe` activated, it should now use the local development version. You can try this by building the `sphin-thebe` documentation:

```bash
cd docs
make html
```
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,6 @@ For more information on using `sphinx-thebe`, see [](use.md).
:hidden:
use
configure
contribute
examples/rst
```

0 comments on commit 8722cbc

Please sign in to comment.