-
Notifications
You must be signed in to change notification settings - Fork 0
/
sphinx
54 lines (33 loc) · 1.31 KB
/
sphinx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
pip install sphinx sphinx_rtd_theme
Create a Sphinx Project
=======================
If you are cloning this repo, stop.
You do not need to perform the steps in this section.
Create a directory to house the Sphinx project::
mkdir docs
cd docs
# generate a new empty Sphinx Project skeleton.
# accept the default options for a generic project or customize if needed.
sphinx-quickstart
Sphinx Anatomy
================
source:
This directory contains ReStructuredText (rst) sourcecode files that may compile or build to different documentation formats.
build:
Contains the output from building the rst sourcecode into different documentation formats.
Build HTML and setup test webserver
=====================================
Get a list of possible output formats::
make
Generate HTML from rst source::
make html
Setup a test webserver::
# cd build/html/ && python -m SimpleHTTPServer
make serve
After run sphinx-quickstart y parametrizar todo aparece
Finished: An initial directory structure has been created.
You should now populate your master file ./source/index.rst and create other documentation
source files. Use the Makefile to build the docs, like so:
make builder
where "builder" is one of the supported builders, e.g. html, latex or linkcheck.
DONDE deberiamos seguir con el aprendizaje de sphinx