Commit 68697732 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Polish documentations.

parent 749b7104
......@@ -218,7 +218,7 @@ latex_elements = {
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents = [
("index", "plugin_dbui_api.tex", r"plugin\_dbui Documentation",
("index", "plugin_dbui_api.tex", r"plugin\_dbui API Guide",
"R. Le Gac", "manual"),
]
......
......@@ -17,13 +17,11 @@ import sys
from datetime import datetime
from pathlib import Path
def get_plugin_dbui_release():
JSBASE = "../../static/plugin_dbui/src/Dbui.js"
s = open(JSBASE, "rb").read()
m = re.match('(.+ version: ")([\w._-]*)(".+)', s, re.DOTALL)
return m.group(2)
def get_version():
return Path("../../../VERSION").read_text()
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
......@@ -61,7 +59,7 @@ copyright = u"2009-%s by Renaud Le Gac, licensed under CeCILL" % now.year
# built documents.
#
# The full version, including alpha/beta/rc tags.
release = get_plugin_dbui_release()
release = get_version()
# The short X.Y version.
version = release[:release.rfind(".")]
......@@ -197,7 +195,7 @@ latex_elements = {
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents = [
("index", "plugin_dbui.tex", u"plugin\\_dbui Documentation",
("index", "plugin_dbui_reference.tex", u"plugin\\_dbui Developer Guide",
u"R. Le Gac", "manual"),
]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment