Skip to content

Commit

Permalink
Add spark tool api reference to doc
Browse files Browse the repository at this point in the history
  • Loading branch information
acezen committed Jan 3, 2023
1 parent 0b1fc5c commit 06d2512
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 5 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@ jobs:
make doc
popd
- name: preview
uses: afc163/surge-preview@v1
id: preview_step
with:
surge_token: ${{ secrets.SURGE_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
dist: docs/_build/html
build: echo "done"

- name: Get the preview_url
run: echo "url => ${{ steps.preview_step.outputs.preview_url }}"

- name: Commit Doc
if: ${{ github.ref == 'refs/heads/main' && github.repository == 'alibaba/GraphAr' }}
run: |
Expand Down
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ build_gar()

# ------------------------------------------------------------------------------
# build example
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
if (BUILD_EXAMPLES)
find_package(Boost REQUIRED COMPONENTS graph)

Expand Down Expand Up @@ -299,12 +299,13 @@ add_custom_target(cpplint
# build docs
# ------------------------------------------------------------------------------
find_program(doxygen_EXECUTABLE doxygen NO_CMAKE_SYSTEM_PATH)
find_program(sphinx_build_EXECUTABLE sphinx-build NO_CMAKE_SYSTEM_PATH)
if(doxygen_EXECUTABLE AND sphinx_build_EXECUTABLE)
# find_program(sphinx_build_EXECUTABLE sphinx-build NO_CMAKE_SYSTEM_PATH)
# if(doxygen_EXECUTABLE AND sphinx_build_EXECUTABLE)
if(doxygen_EXECUTABLE)
add_custom_target(doc
COMMAND ${CMAKE_COMMAND} -E make_directory _build
COMMAND ${doxygen_EXECUTABLE}
COMMAND ${sphinx_build_EXECUTABLE} . _build/html
COMMAND python3 -m sphinx . _build/html
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/docs
VERBATIM
)
Expand Down
7 changes: 7 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,10 @@
:hidden:

api-reference.rst

.. toctree::
:maxdepth: 1
:caption: API Reference
:hidden:

Spark API Reference <../spark#http://>
File renamed without changes.
4 changes: 4 additions & 0 deletions docs/reference/api-reference-spark.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Spark API Reference (javadoc)
========================

Stub page for the Java reference docs; actual source is located in the gae_java/ directory.
2 changes: 1 addition & 1 deletion test/gar-test

0 comments on commit 06d2512

Please sign in to comment.