Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mitodl/import-api-slides
Design slides for a supported import/export API.
https://github.com/mitodl/import-api-slides
Last synced: 6 days ago
JSON representation
Design slides for a supported import/export API.
- Host: GitHub
- URL: https://github.com/mitodl/import-api-slides
- Owner: mitodl
- Created: 2014-10-24T17:24:35.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-10-20T13:38:05.000Z (about 1 year ago)
- Last Synced: 2024-04-14T05:23:33.990Z (8 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Import/export API proposal slides
=================================
This project is intended to supply a convenient development environment for
a supported import/export API which will be presented to the edX Architect's
Council.How to build
------------
1. Install the requirements: `pip install -r requirements.txt`
2. Run the build script: `python deckgen.py build`
3. To view the slide decks, navigate to the **decks** directory using a modern
browser.How it works
------------
There are three important directories: **markdown**, **decks**, and **assets**.- **markdown** contains the source markdown files.
- **decks** contains the resulting HTML slide decks.
- **assets** contains assets used by the slide decks.When building a slide deck, the build script just takes the markdown file from
the **source** directory, inserts it into the **template.html** file, and saves
the result in the **decks** directory. That is all.Using the watcher
-----------------
There is a filesystem watcher utility included in **deckgen.py** that can listen
for changes to markdown files and convert them on the fly. *This is convenient
when editing slide decks.*It can be started by running `deckgen.py watch`.
deckgen.py --help
-----------------
```
Standalone slide deck collection builder.Usage:
deckgen.py build [-s SRC] [-d DEST] [-t TEMP] [NAME...]
deckgen.py watch [-s SRC] [-d DEST] [-t TEMP]
deckgen.py -h | --helpArguments:
name The name of a slide deck to generate. Accompanying markdown should be
located in the source directory. For example, if the markdown file is
named "slides.md", the name "slides" should be passed.
If no names are passed, the default behavior is to run against ALL
markdown files in the source directoryOptions:
-h --help Show this help screen.
-s --source=SRC Source markdown directory [default: markdown].
-d --destination=DEST Destination HTML directory [default: decks].
-t --template=TEMP HTML template to use [default: template.html].
```