Skip to content

Commit dc012ca

Browse files
committed
Update docs
Close #70
1 parent 9ab8f1c commit dc012ca

File tree

6 files changed

+123
-61
lines changed

6 files changed

+123
-61
lines changed

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ format:
1313
docs:
1414
python -m nox -r -s docs
1515

16+
serve-docs:
17+
python -m nox -r -s docs -- --live
18+
1619
clean:
1720
rm -rf dist/
1821
rm -rf build/
@@ -22,4 +25,4 @@ publish: clean
2225
python setup.py sdist bdist_wheel
2326
python -m twine upload dist/*
2427

25-
.PHONY: tests lint format docs clean publish coverage
28+
.PHONY: tests lint format docs serve-docs clean publish coverage

README.md

+2-22
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,6 @@ Python interactive tutorial in your terminal.
99

1010
_Learn, Imagine, Repeat, Analyze_
1111

12-
**This program is still under development, many things may change!**
12+
**This project is still under development, many things may and will change!**
1313

14-
## Features
15-
16-
- Command line tutorial (100% text)
17-
- Multi platform
18-
- Easy to install
19-
- Content for all levels
20-
- Autocomplete (program arguments)
21-
- Easy to add new tutorials
22-
- Multi-languages (i18n)
23-
- Edit the code with your preferred editor
24-
- Save your advance
25-
26-
## No-Features
27-
28-
- It is not a web tutorial
29-
- No mobile support
30-
- It does not have multi-user support
31-
- It is not an editor or IDE for Python
32-
- Does not support other programming languages
33-
- Not a replacement for Jupyter Notebook
34-
- It is not a reference document or book
14+
Check the docs at <https://lira.python.ec>.

docs/config.rst

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
Configuration
2+
=============
3+
4+
The configuration file is located at ``~/.config/lira/config.yaml`` on UNIX-like systems,
5+
and at ``~/AppData/Local/config.yaml`` on Windows systems.
6+
This is how it looks like
7+
8+
.. code-block:: yaml
9+
10+
books:
11+
- lira.books.intro
12+
- example/
13+
14+
.. note::
15+
16+
Lira follows the XDG_ base directory specification.
17+
18+
.. _XDG: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
19+
20+
21+
All supported settings are document below.
22+
23+
books
24+
-----
25+
26+
List of books, each book can be a dotted path to the module of the book,
27+
or a local path to the directory of the book
28+
(it can be a relative path to the config file).
29+
30+
.. code-block:: yaml
31+
books:
32+
# A dotted path to a module
33+
- lira.books.intro
34+
35+
# An absolute local path
36+
- ~/local/path/to/book/
37+
38+
# A relative path to the config file
39+
- relative/path
40+
41+
Defaults to:
42+
43+
.. code-block:: yaml
44+
45+
books:
46+
- lira.books.intro

docs/development.rst

+40
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Development
22
===========
33

4+
Contributing
5+
------------
6+
47
**Thanks** for the interest in contributing to Lira!
58

69
Requirements:
@@ -57,3 +60,40 @@ and see if the linter, tests, and coverage are passing.
5760
make lint
5861
make tests
5962
make coverage
63+
64+
Roadmap
65+
-------
66+
67+
Goals
68+
~~~~~
69+
70+
- Command line tutorial (100% text)
71+
- Multi platform
72+
- Easy to install
73+
- Content for all levels
74+
- Autocomplete (program arguments)
75+
- Easy to add new tutorials
76+
- Multi-languages (i18n)
77+
- Edit the code with your favorite editor
78+
- Save your advance
79+
80+
Non-Goals
81+
~~~~~~~~~
82+
83+
- It is not a web tutorial
84+
- No mobile support
85+
- It does not have multi-user support
86+
- It is not an editor or IDE for Python
87+
- Does not support other languages
88+
- Not a replacement for Jupyter Notebook
89+
- It is not a reference document or book
90+
91+
Random ideas for the future
92+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
93+
94+
- Multiple themes support
95+
- Plugins
96+
- Share your score
97+
- Expand to other types of tutorials (physics, math, statistics)
98+
- Against the clock mode
99+
- Quiz mode

docs/index.rst

+23-37
Original file line numberDiff line numberDiff line change
@@ -4,49 +4,35 @@ Lira
44
Python interactive tutorial in your terminal.
55
This is a project from the `Python Ecuador <https://python.ec/>`__ community.
66

7-
*Learn, Imagine, Repeat, Analyze*
7+
*Learn, Imagine, Repeat, Analyze*.
88

99
.. note::
1010

11-
This program is still under development, many things may change!
11+
This project is still under development, many things may and will change!
12+
13+
Quickstart
14+
----------
15+
16+
Install Lira with ``pip``:
17+
18+
.. code-block:: bash
19+
20+
python -m pip install --user lira
21+
22+
Run ``lira``:
23+
24+
.. code-block:: bash
25+
26+
lira
27+
# or
28+
python -m lira
29+
30+
Contents
31+
--------
1232

1333
.. toctree::
1434
:maxdepth: 2
15-
:caption: Contents:
1635

36+
config.rst
1737
development.rst
1838
modules/index.rst
19-
20-
Features
21-
--------
22-
23-
- Command line tutorial (100% text)
24-
- Multi platform
25-
- Easy to install
26-
- Content for all levels
27-
- Autocomplete (program arguments)
28-
- Easy to add new tutorials
29-
- Multi-languages
30-
- Edit the code with your favorite editor
31-
- Save your advance
32-
33-
No-Features
34-
-----------
35-
36-
- It is not a web tutorial
37-
- No mobile support
38-
- It does not have multi-user support
39-
- It is not an editor or IDE for Python
40-
- Does not support other languages
41-
- Not a replacement for Jupyter Notebook
42-
- It is not a reference document or book
43-
44-
Random ideas for the future
45-
---------------------------
46-
47-
- Multiple themes support
48-
- Plugins
49-
- Share your score
50-
- Expand to other types of tutorials (physics, math, statistics)
51-
- Against the clock mode
52-
- Quiz mode

noxfile.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,12 @@ def format(session):
4242
@nox.session
4343
def docs(session):
4444
session.install("-e", ".[docs]")
45+
live_update = session.posargs and session.posargs[0] == "--live"
46+
if live_update:
47+
session.install("sphinx-autobuild")
48+
4549
session.cd("docs")
46-
session.run("sphinx-build", "-b", "html", "-W", ".", "_build/html")
50+
if live_update:
51+
session.run("sphinx-autobuild", ".", "_build/html")
52+
else:
53+
session.run("sphinx-build", "-b", "html", "-W", ".", "_build/html")

0 commit comments

Comments
 (0)