Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
core
tarantool
Commits
737cfe2d
Commit
737cfe2d
authored
10 years ago
by
Konstantin Osipov
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of github.com:tarantool/tarantool
parents
ea937be8
a732a61a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/user/CMakeLists.txt
+2
-14
2 additions, 14 deletions
doc/user/CMakeLists.txt
doc/www-data.in/_layout/base
+1
-1
1 addition, 1 deletion
doc/www-data.in/_layout/base
extra/static.py
+15
-19
15 additions, 19 deletions
extra/static.py
with
18 additions
and
34 deletions
doc/user/CMakeLists.txt
+
2
−
14
View file @
737cfe2d
set
(
PATH_USERGUIDE_HTML
"
${
PROJECT_BINARY_DIR
}
/doc/www-data.in/doc/user_guide.html"
)
execute_process
(
set
(
PATH_USERGUIDE_HTML_CHUNK
"
${
PROJECT_BINARY_DIR
}
/doc/www-data.in/doc/mpage/"
)
COMMAND git rev-parse --abbrev-ref HEAD
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
OUTPUT_VARIABLE GIT_BRANCH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if
(
NOT GIT_BRANCH STREQUAL
""
)
set
(
GIT_BRANCH
"
${
GIT_BRANCH
}
/"
)
endif
(
NOT GIT_BRANCH STREQUAL
""
)
set
(
PATH_USERGUIDE_HTML
"
${
PROJECT_BINARY_DIR
}
/doc/www-data.in/doc/
${
GIT_BRANCH
}
user_guide.html"
)
set
(
PATH_USERGUIDE_HTML_CHUNK
"
${
PROJECT_BINARY_DIR
}
/doc/www-data.in/doc/
${
GIT_BRANCH
}
mpage/"
)
set
(
PATH_USERGUIDE_TXT
"
${
PROJECT_BINARY_DIR
}
/doc/user/tarantool_user_guide.txt"
)
set
(
PATH_USERGUIDE_TXT
"
${
PROJECT_BINARY_DIR
}
/doc/user/tarantool_user_guide.txt"
)
if
(
XMLLINT STREQUAL
"XMLLINT-NOTFOUND"
)
if
(
XMLLINT STREQUAL
"XMLLINT-NOTFOUND"
)
...
...
This diff is collapsed.
Click to expand it.
doc/www-data.in/_layout/base
+
1
−
1
View file @
737cfe2d
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<h2>
A NoSQL database in a Lua script
</h2>
<h2>
A NoSQL database in a Lua script
</h2>
<h3>
<h3>
<a
href=
"intro.html"
class=
"intro"
>
Overview
</a>
<a
href=
"intro.html"
class=
"intro"
>
Overview
</a>
<a
href=
"doc/
stable/
mpage/index.html"
class=
"documentation"
>
Documentation
</a>
<a
href=
"doc/mpage/index.html"
class=
"documentation"
>
Documentation
</a>
<a
href=
"download.html"
class=
"download"
>
Download
</a>
<a
href=
"download.html"
class=
"download"
>
Download
</a>
<a
href=
"support.html"
class=
"support"
>
Support
</a>
<a
href=
"support.html"
class=
"support"
>
Support
</a>
</h3>
</h3>
...
...
This diff is collapsed.
Click to expand it.
extra/static.py
+
15
−
19
View file @
737cfe2d
...
@@ -26,11 +26,11 @@ class MockConfig(object):
...
@@ -26,11 +26,11 @@ class MockConfig(object):
self
.
output_path
=
'
../www-data/
'
self
.
output_path
=
'
../www-data/
'
self
.
layout_dir
=
'
_layout/
'
self
.
layout_dir
=
'
_layout/
'
self
.
text_dir
=
'
_text/
'
self
.
text_dir
=
'
_text/
'
self
.
doc
=
'
doc/
{branch}
'
self
.
doc
=
'
doc/
'
self
.
doc_mpage
=
'
mpage/
'
self
.
doc_mpage
=
'
mpage/
'
self
.
doc_opage
=
'
user_guide.html
'
self
.
doc_opage
=
'
user_guide.html
'
self
.
doc_css
=
'
../user/tnt.css
'
self
.
doc_css
=
'
../user/tnt.css
'
self
.
target
=
''
self
.
target
=
''
class
Loader
(
object
):
class
Loader
(
object
):
...
@@ -87,27 +87,23 @@ class Loader(object):
...
@@ -87,27 +87,23 @@ class Loader(object):
<div id=
"
headr
"
class=
"
column
"
>{1}</div>
<div id=
"
headr
"
class=
"
column
"
>{1}</div>
</div>
</div>
"""
"""
lheader
=
"""
lheader
=
"""
### [Home](/) -> [Documentation][{
c
o}]
### [Home](/) -> [Documentation][{o
t
}]
[opa]: /doc/{branch1}/user_guide.html
[one_page]: /doc/user_guide.html
[mpa]: /doc/{branch1}/mpage/index.html
"""
[mul_page]: /doc/mpage/index.html
"""
rheader
=
"""
### [{bn}][{o}1] / [{bno}][mpa2]
[opa1]: /doc/{branch1}/user_guide.html
rheader
=
"""
[mpa1]: /doc/{branch1}/mpage/index.html
### [{type}][{t}]
[o
pa2]: /doc/{branch2}
/user_guide.html
[o
ne_page]: /doc
/user_guide.html
[m
pa2]: /doc/{branch2}
/mpage/index.html
"""
[m
ul_page]: /doc
/mpage/index.html
"""
env
=
{
env
=
{
'
bn
'
:
branch
.
capitalize
(),
'
type
'
:
'
Switch to
'
+
(
'
One-page
'
if
not
one_page
else
'
Multi-page
'
)
+
'
version
'
,
'
bno
'
:
(
'
master
'
if
branch
!=
'
master
'
else
'
stable
'
).
capitalize
(),
'
ot
'
:
'
one_page
'
if
one_page
else
'
mul_page
'
,
'
branch1
'
:
branch
,
'
t
'
:
'
mul_page
'
if
one_page
else
'
one_page
'
,
'
branch2
'
:
(
'
master
'
if
branch
!=
'
master
'
else
'
stable
'
),
'
o
'
:
'
mpa
'
if
one_page
else
'
opa
'
,
'
co
'
:
'
opa
'
if
one_page
else
'
mpa
'
,
}
}
lheader
=
markdown
(
lheader
.
format
(
**
env
),
extensions
=
mdext
)
lheader
=
markdown
(
lheader
.
format
(
**
env
),
extensions
=
mdext
)
rheader
=
markdown
(
rheader
.
format
(
**
env
),
extensions
=
mdext
)
rheader
=
markdown
(
rheader
.
format
(
**
env
),
extensions
=
mdext
)
...
@@ -119,7 +115,7 @@ class Loader(object):
...
@@ -119,7 +115,7 @@ class Loader(object):
branch
=
proc
.
communicate
()[
0
].
strip
()
branch
=
proc
.
communicate
()[
0
].
strip
()
docs_template
=
self
.
environ
.
get_template
(
'
documentation
'
)
docs_template
=
self
.
environ
.
get_template
(
'
documentation
'
)
# ==========================================
# ==========================================
doc_mpath
=
os
.
path
.
join
(
self
.
config
.
doc
,
self
.
config
.
doc_mpage
)
.
format
(
branch
=
branch
)
doc_mpath
=
os
.
path
.
join
(
self
.
config
.
doc
,
self
.
config
.
doc_mpage
)
doc_mpage_out
=
doc_mpath
doc_mpage_out
=
doc_mpath
doc_mpath_out
=
os
.
path
.
join
(
self
.
config
.
output_path
,
doc_mpath
)
doc_mpath_out
=
os
.
path
.
join
(
self
.
config
.
output_path
,
doc_mpath
)
doc_mpath
=
os
.
path
.
join
(
self
.
config
.
input
,
doc_mpath
)
doc_mpath
=
os
.
path
.
join
(
self
.
config
.
input
,
doc_mpath
)
...
@@ -136,7 +132,7 @@ class Loader(object):
...
@@ -136,7 +132,7 @@ class Loader(object):
self
.
write
(
os
.
path
.
join
(
doc_mpage_out
,
i
),
data
)
self
.
write
(
os
.
path
.
join
(
doc_mpage_out
,
i
),
data
)
shutil
.
copy
(
self
.
config
.
doc_css
,
doc_mpath_out
)
shutil
.
copy
(
self
.
config
.
doc_css
,
doc_mpath_out
)
# ===========================================
# ===========================================
doc_opath
=
self
.
config
.
doc
.
format
(
branch
=
branch
)
doc_opath
=
self
.
config
.
doc
doc_opath_out
=
os
.
path
.
join
(
self
.
config
.
output_path
,
doc_opath
)
doc_opath_out
=
os
.
path
.
join
(
self
.
config
.
output_path
,
doc_opath
)
doc_opage_out
=
os
.
path
.
join
(
doc_opath
,
self
.
config
.
doc_opage
)
doc_opage_out
=
os
.
path
.
join
(
doc_opath
,
self
.
config
.
doc_opage
)
doc_opath
=
os
.
path
.
join
(
self
.
config
.
input
,
doc_opath
)
doc_opath
=
os
.
path
.
join
(
self
.
config
.
input
,
doc_opath
)
...
...
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