Skip to content

Commit

Permalink
[DOC] Remove ruby tools
Browse files Browse the repository at this point in the history
  • Loading branch information
manuzhang committed Dec 1, 2019
1 parent cbd28ec commit 6d1f752
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 37 deletions.
43 changes: 10 additions & 33 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,23 @@ This README gives an overview of how to build and contribute to the documentatio
The documentation is included with the source of Gearpump in order to ensure that you always
have docs corresponding to your checked out version.

# Requirements
## Requirements

You need to install ruby and ruby-dev first. On Ubuntu, you ca run command like this:
* Python >= 3.5
* [MkDocs](https://www.mkdocs.org/) >= 17.0
* [mkdocs-markdownextradata-plugin](https://github.com/rosscdh/mkdocs-markdownextradata-plugin) and [mkdocs-htmlproofer-plugin](https://github.com/manuzhang/mkdocs-htmlproofer-plugin)

sudo apt-get install ruby
sudo apt-get install ruby-dev
sudo apt-get install python-setuptools
sudo apt-get install pip
Install the packages with pip

We use Markdown to write and Jekyll to translate the documentation to static HTML. You can install
all needed software via:

sudo pip install mkdocs
sudo gem install html-proofer


If you are using Mac OSX 10.11+ (El Capitan), you will need to execute following command:
```
sudo gvim /Library/Ruby/Gems/2.0.0/gems/ffi-1.9.10/lib/ffi/library.rb
```
And change following code in this file:
```ruby
module FFI
...
def self.map_library_name(lib)
...
lib = Library::LIBC if lib == 'c'
lib = Library::LIBCURL if lib == 'libcurl'
...
module Library
CURRENT_PROCESS = FFI::CURRENT_PROCESS
LIBC = '/usr/lib/libc.dylib'
LIBCURL = '/usr/lib/libcurl.dylib'
pip install mkdocs mkdocs-markdownextradata-plugin mkdocs-htmlproofer-plugin
```


# How to Build
Command `./build_doc.sh` can be used to create a full document folder under site/.
## How to Build
Command `./build_doc.sh` can be used to create a full document folder under `site/`.

# How to contribute
## How to contribute

The documentation pages are written in
[Markdown](http://daringfireball.net/projects/markdown/syntax).
Expand All @@ -63,7 +40,7 @@ Please stick to the "logical order" when using the headlines, e.g. start with le
use level-3 headings for subsections, etc. Don't use a different ordering, because you don't like
how a headline looks.

# How to Test
## How to Test

Command `mkdocs build` can be used to make a test build.

Expand Down
4 changes: 0 additions & 4 deletions docs/build_doc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ mkdocs build --clean
# check html link validity
echo "Checking generated HTMLs using htmlproofer..."

htmlproofer site \
--disable-external \
--file-ignore site/base.html,site/breadcrumbs.html,site/versions.html,site/toc.html,site/footer.html

# generate API doc
if [ "$BUILD_API" = 1 ]; then
# Build Scaladoc for Java/Scala
Expand Down
1 change: 1 addition & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ markdown_extensions:
plugins:
- search
- markdownextradata
- htmlproofer

extra:
GEARPUMP_VERSION: "0.9.1"
Expand Down

0 comments on commit 6d1f752

Please sign in to comment.