Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add_doc_in_centos7 #747

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions cpplint/doc_gen.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#! /bin/bash
set -e
yum install doxygen -y
pip install --exists-action=w --no-cache-dir -r docs/requirements.txt
cd docs/zh-CN
make html SPHINXOPTS=-W
#make html SPHINXOPTS=-W
make html
cd ../en-US
make html SPHINXOPTS=-W
#make html SPHINXOPTS=-W
make html
2 changes: 1 addition & 1 deletion docs/en-US/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?= -W
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = build
Expand Down
14 changes: 12 additions & 2 deletions docs/en-US/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

import os, subprocess, sys, shlex
import os, subprocess, sys, shlex, platform
project = 'TuGraph'
copyright = '2023, Ant Group'
author = 'Ant Group'
Expand Down Expand Up @@ -42,7 +42,17 @@
breathe_projects = {"cpp_procedure": "9.olap&procedure/1.procedure/build/xml"}
breathe_default_project = "cpp_procedure"
else:
if os.path.exists("9.olap&procedure/1.procedure/3.C++-procedure.rst") and \
if platform.linux_distribution()[0].lower().startswith('centos') and platform.linux_distribution()[1].startswith('7'):
subprocess.run(shlex.split("wget https://tugraph-web.oss-cn-beijing.aliyuncs.com/tugraph/doc_deps/centos7/liblgraph_python_api.so"))
subprocess.run(shlex.split("wget https://tugraph-web.oss-cn-beijing.aliyuncs.com/tugraph/doc_deps/centos7/liblgraph.so"))
subprocess.run(shlex.split("wget https://tugraph-web.oss-cn-beijing.aliyuncs.com/tugraph/doc_deps/centos7/libjvm.so"))
sys.path.insert(0, os.path.abspath('9.olap&procedure/1.procedure/'))
# doxygen & breathe
extensions.append("breathe")
subprocess.run(shlex.split("doxygen"), cwd="9.olap&procedure/1.procedure/")
breathe_projects = {"cpp_procedure": "9.olap&procedure/1.procedure/build/xml"}
breathe_default_project = "cpp_procedure"
elif os.path.exists("9.olap&procedure/1.procedure/3.C++-procedure.rst") and \
os.path.exists("9.olap&procedure/1.procedure/4.Python-procedure.rst") and \
os.path.exists("9.olap&procedure/1.procedure/index.rst") and \
os.path.exists("9.olap&procedure/1.procedure/index.rst.aci"):
Expand Down
14 changes: 12 additions & 2 deletions docs/zh-CN/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# -- Project information -----------------------------------------------------

import os, subprocess, sys, shlex
import os, subprocess, sys, shlex, platform
project = 'TuGraph'

copyright = '2023, Ant Group'
Expand Down Expand Up @@ -42,7 +42,17 @@
breathe_projects = {"cpp_procedure": "9.olap&procedure/1.procedure/build/xml"}
breathe_default_project = "cpp_procedure"
else:
if os.path.exists("9.olap&procedure/1.procedure/3.C++-procedure.rst") and \
if platform.linux_distribution()[0].lower().startswith('centos') and platform.linux_distribution()[1].startswith('7'):
subprocess.run(shlex.split("wget https://tugraph-web.oss-cn-beijing.aliyuncs.com/tugraph/doc_deps/centos7/liblgraph_python_api.so"))
subprocess.run(shlex.split("wget https://tugraph-web.oss-cn-beijing.aliyuncs.com/tugraph/doc_deps/centos7/liblgraph.so"))
subprocess.run(shlex.split("wget https://tugraph-web.oss-cn-beijing.aliyuncs.com/tugraph/doc_deps/centos7/libjvm.so"))
sys.path.insert(0, os.path.abspath('9.olap&procedure/1.procedure/'))
# doxygen & breathe
extensions.append("breathe")
subprocess.run(shlex.split("doxygen"), cwd="9.olap&procedure/1.procedure/")
breathe_projects = {"cpp_procedure": "9.olap&procedure/1.procedure/build/xml"}
breathe_default_project = "cpp_procedure"
elif os.path.exists("9.olap&procedure/1.procedure/3.C++-procedure.rst") and \
os.path.exists("9.olap&procedure/1.procedure/4.Python-procedure.rst") and \
os.path.exists("9.olap&procedure/1.procedure/index.rst") and \
os.path.exists("9.olap&procedure/1.procedure/index.rst.aci"):
Expand Down
Loading