mirror of
https://git.rtems.org/rtems-docs/
synced 2025-10-17 22:55:55 +08:00
Initial reST documentation using Sphinx.
This commit is contained in:
29
book/index_book.rst
Normal file
29
book/index_book.rst
Normal file
@@ -0,0 +1,29 @@
|
||||
.. highlight:: c
|
||||
|
||||
===================
|
||||
RTEMS Documentation
|
||||
===================
|
||||
|
||||
Table of Contents
|
||||
-----------------
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 3
|
||||
:numbered:
|
||||
|
||||
user/index.rst
|
||||
rtemsconfig/index.rst
|
||||
shell/index.rst
|
||||
commands/index.rst
|
||||
ada_user/index.rst
|
||||
bsp_howto/index.rst
|
||||
c_user/index.rst
|
||||
cpu_supplement/index.rst
|
||||
develenv/index.rst
|
||||
filesystem/index.rst
|
||||
networking/index.rst
|
||||
new_chapters/index.rst
|
||||
porting/index.rst
|
||||
posix1003_1/index.rst
|
||||
posix_users/index.rst
|
||||
relnotes/index.rst
|
59
book/wscript
Normal file
59
book/wscript
Normal file
@@ -0,0 +1,59 @@
|
||||
from sys import path
|
||||
from os.path import abspath
|
||||
path.append(abspath('../common/'))
|
||||
|
||||
from waf import cmd_configure, cmd_build
|
||||
|
||||
def configure(ctx):
|
||||
cmd_configure(ctx)
|
||||
|
||||
def build(ctx):
|
||||
|
||||
dirs = [
|
||||
"user",
|
||||
"rtemsconfig",
|
||||
"shell",
|
||||
"commands",
|
||||
"ada_user",
|
||||
"bsp_howto",
|
||||
"c_user",
|
||||
"cpu_supplement",
|
||||
"develenv",
|
||||
"filesystem",
|
||||
"networking",
|
||||
"new_chapters",
|
||||
"porting",
|
||||
"posix1003_1",
|
||||
"posix_users",
|
||||
"relnotes"
|
||||
]
|
||||
|
||||
for dir in dirs:
|
||||
files = ctx.path.parent.find_node(dir).ant_glob("**/*.rst")
|
||||
files = [x for x in files if x.name.find("/build/") == -1]
|
||||
ctx.path.get_bld().make_node(dir).mkdir() # dirs
|
||||
|
||||
ctx(
|
||||
features = "subst",
|
||||
is_copy = True,
|
||||
source = files,
|
||||
target = [x.abspath().replace(ctx.srcnode.parent.abspath(), "") for x in files]
|
||||
)
|
||||
|
||||
|
||||
ctx(
|
||||
features = "subst",
|
||||
is_copy = True,
|
||||
source = ctx.srcnode.find_node("index_book.rst"),
|
||||
target = ["index.rst"]
|
||||
)
|
||||
|
||||
|
||||
sub = {
|
||||
"VERSION": "1.0",
|
||||
"RELEASE": "5.0.0",
|
||||
"DOC": "Manual",
|
||||
"FILE_DOC": "rtemsmanual",
|
||||
}
|
||||
|
||||
cmd_build(ctx, sub, source_dir="build")
|
Reference in New Issue
Block a user