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

[Doc] Refine building steps to be more clear in ReadMe #154

Merged
merged 5 commits into from
May 9, 2023
Merged
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
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ Take the "person knows person" edges to illustrate. Suppose the vertex chunk siz
:align: center
:alt: edge logical table2

Libraries
----------
Building Libraries
------------------

Libraries are provided for reading, writing and transforming files in GraphAr,
now the C++ library and the Spark library are available. And we are going to
Expand Down
15 changes: 13 additions & 2 deletions cpp/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ repository and navigated to the ``cpp`` subdirectory:
.. code-block::

$ git clone https://github.com/alibaba/GraphAr.git
$ cd GraphAr
$ git submodule update --init
$ cd GraphAr/cpp
$ cd cpp

Release build:

Expand All @@ -68,7 +69,7 @@ setting :code:`NAMESPACE` option with cmake:

$ mkdir build
$ cd build
$ cmake .. -DNAMESPACE=MyNamespace
$ cmake -DNAMESPACE=MyNamespace ..
$ make -j8 # if you have 8 CPU cores, otherwise adjust

Debug build with unit tests:
Expand All @@ -91,6 +92,7 @@ Build with examples:
$ cd build-examples
$ cmake -DBUILD_EXAMPLES=ON ..
$ make -j8 # if you have 8 CPU cores, otherwise adjust
$ ./bgl_example # run the BGL example

Install
^^^^^^^^^
Expand All @@ -108,8 +110,17 @@ Building the API document with Doxgen:

.. code-block:: shell

$ cd GraphAr/cpp
$ pushd apidoc
$ doxgen
$ popd

The API document is generated in the directory ``cpp/apidoc/html``.


How to use
-----------

Please refer to our `GraphAr C++ API Reference`_.

.. _GraphAr C++ API Reference: https://alibaba.github.io/GraphAr/reference/api-reference-cpp.html
2 changes: 1 addition & 1 deletion docs/user-guide/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ This program first reads in the graph information file to obtain the metadata; t

Please refer to `more examples <../applications/out-of-core.html>`_ to learn about the other available case studies utilizing GraphAr.

.. _Building Steps: https://github.com/alibaba/GraphAr/blob/main/README.rst
.. _Building Steps: https://github.com/alibaba/GraphAr/blob/main/README.rst#building-libraries

.. _person.vertex.yml: https://github.com/GraphScope/gar-test/blob/main/ldbc_sample/csv/person.vertex.yml

Expand Down
8 changes: 5 additions & 3 deletions docs/user-guide/spark-lib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,17 @@ Make the graphar-spark-library directory as the current working directory:

.. code-block:: shell

cd spark/
cd GraphAr/spark/

Compile package:

.. code-block:: shell

mvn package
mvn clean package -DskipTests

After compilation, a similar file *graphar-0.1.0-SNAPSHOT-shaded.jar* is generated in the directory *spark/target/*.
After compilation, a similar file *graphar-x.x.x-SNAPSHOT-shaded.jar* is generated in the directory *spark/target/*.

Please refer to the `building steps <https://github.com/alibaba/GraphAr/tree/main/spark>`_ for more details.


How to Use
Expand Down
7 changes: 6 additions & 1 deletion spark/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Building GraphAr Spark
System setup
^^^^^^^^^^^^^

First, install Spark as documented on `their website`_. Currently, the GraphAr Spark library supports Spark 3.2+ with Scala 2.12.

GraphAr Spark uses maven as a package build system.

Building requires:
Expand All @@ -25,8 +27,9 @@ repository and navigated to the ``spark`` subdirectory:
.. code-block::

$ git clone https://github.com/alibaba/GraphAr.git
$ cd GraphAr
$ git submodule update --init
$ cd GraphAr/spark
$ cd spark

Build the package:

Expand Down Expand Up @@ -74,3 +77,5 @@ How to use
Please refer to our `GraphAr Spark Library Documentation`_.

.. _GraphAr Spark Library Documentation: https://alibaba.github.io/GraphAr/user-guide/spark-lib.html

.. _their website: https://spark.apache.org/downloads.html
2 changes: 1 addition & 1 deletion testing