Code Monkey home page Code Monkey logo

siridb-enodo-docs's Introduction

SiriDB Enodo - Docs

This is the repository for the Enodo documentation. It makes use of the Hugo Learn theme and Hugo.

Prerequisites

Update golang to version 1.12

sudo snap install go --classic

Install Hugo (Ubuntu/Debian)

With the latest version of Hugo, the menu seems to be broken.

A working version (including a .deb file) can be downloaded here.

Install template

git submodule update --init --recursive

Usage

To start the website run the following commands:

Development:

Start development server from the v0/ folder.

hugo server --disableFastRender # This command starts the Hugo server and watches the site directory for changes.

Syntax highlighting

The theme uses highlight.js for syntax highlighting.

Build the custom syntax:

Clone the highlight.js fork:

git clone https://github.com/SiriDB/highlight.js.git

Build with the required language support

// Go to the highlight.js folder
cd ./highlight.js

// Make sure you have Node.js installed and get the dependencies
npm install

//Build the included languages and skip compression in this case
node tools/build.js -n python json siridb go bash

Copy the build to the Docs project

Here we assume siridb-enodo-docs is a sibling of highlight.js in the folder structure

cp build/highlight.js ../siridb-docs/themes/hugo-theme-learn/static/js/highlight.pack.js

Adding a chapter or paragraph

When you like to add another document to the content, it needs a weight value. The weight value determines the ordering of the files. This means that when a file is added at the beginning, the weight value of all the files that follow needs to be changed. This process can be time consuming, therefore we made a python script that does this for you.

After the file is added run the next command:

./weight_map.py --export > site.map

Now the site.map is created. Open this file. You will see all the chapters and paragraphs. Check if the order from top to down is correct. Otherwise you can change it in this file.

Next run the following command:

./weight_map.py --apply site.map

The weight value of all files has been updated according to the order in the site.map file.

siridb-enodo-docs's People

Contributors

joente avatar robbm1 avatar timoj avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

siridb-enodo-docs's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.