Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
plugin_dbui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
w2pext
plugin_dbui
Commits
42c8d5cc
Commit
42c8d5cc
authored
9 years ago
by
legac
Browse files
Options
Downloads
Patches
Plain Diff
API Release number from App.js.
parent
1474d621
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/api/conf.py
+15
-5
15 additions, 5 deletions
docs/api/conf.py
with
15 additions
and
5 deletions
docs/api/conf.py
+
15
−
5
View file @
42c8d5cc
...
...
@@ -11,11 +11,19 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
import
sys
import
os
import
re
import
sys
from
datetime
import
datetime
def
get_plugin_dbui_release
():
JSBASE
=
'
../../static/plugin_dbui/src/App.js
'
s
=
open
(
JSBASE
,
'
rb
'
).
read
()
m
=
re
.
match
(
"
(.+ version:
'
)([\w._-]*)(
'
.+)
"
,
s
,
re
.
DOTALL
)
return
m
.
group
(
2
)
# 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
# documentation root, use os.path.abspath to make it absolute, like shown here.
...
...
@@ -60,17 +68,19 @@ source_suffix = '.rst'
master_doc
=
'
index
'
# General information about the project.
now
=
datetime
.
now
()
project
=
u
'
plugin_dbui
'
copyright
=
u
'
2009-%s, R. Le Gac, licensed under CeCILL
'
%
datetime
.
now
()
.
year
copyright
=
u
'
2009-%s, R. Le Gac, licensed under CeCILL
'
%
now
.
year
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version
=
'
0.6.2
'
# The full version, including alpha/beta/rc tags.
release
=
'
0.6.2.7
'
release
=
get_plugin_dbui_release
()
# The short X.Y version.
version
=
release
[:
release
.
rfind
(
'
.
'
)]
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment