Skip to content

Commit

Permalink
document API
Browse files Browse the repository at this point in the history
  • Loading branch information
bast committed Nov 27, 2016
1 parent e43a4f5 commit 2e06b66
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 18 deletions.
18 changes: 0 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,6 @@ created by [Ole Petter Bang](https://github.com/gnab).
- [Roberto Di Remigio](https://github.com/robertodr) (MathJax support)


## API

### v1 (deprecated but supported)

- Does not support files in subdirectories.
```
/v1/github/<namespace>/<repo>/<branch>/<file>/remark/
```


### v2

- Supports files in subdirectories.
```
/v2/remark/github/<namespace>/<repo>/<branch>/<file>/
```


## Environment variables

`CICERO_URL_BASE`: defines the URL base for generated links in the Markdown file finder
Expand Down
21 changes: 21 additions & 0 deletions doc/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@


v2
==

Supports files in subdirectories.

::

/v2/remark/github/<namespace>/<repo>/<branch>/<file>/


v1
==

This API is deprecated but supported.
Does not support files in subdirectories.

::

/v1/github/<namespace>/<repo>/<branch>/<file>/remark/
6 changes: 6 additions & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@

Cicero: Serving slides written in Markdown
==========================================

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

api.rst

0 comments on commit 2e06b66

Please sign in to comment.