Git Product home page Git Product logo

the-docs's Introduction

the-docs

Linux Man Pages

Setup

Vagrant

For the local setup to work, you'll need to get Vagrant and VirtualBox.

RE2

You'll need to have Google's RE2 library installed. For Linux you can follow their installation instructions, but for MacOs, you might prefer to use Homebrew:

brew install re2

Clone

First step should be to clone this repository:

git clone https://github.com/davidpoblador/the-docs
cd the-docs

Prepare Python environment

It is recommended to use virtualenv or conda for setting up everything within a separate, so your base system is kept untouched. Once in your environment, you can run:

pip install -r requirements.txt

Get Man Pages

Another step should be getting the sources for the man pages. For this task to be easier, the fetch-man-pages.sh script is provided:

cd utils
./fetch-manpages-from-packages.py

Create your local virtual machine

Once everything is in place, you can start the local VM:

vagrant up

The first time you do this, it might take quite a few minutes, depending on your setup and Internet connection. Following executions of this command should be faster, since everything should be in place. When you finish working with the-docs, you can stop it:

vagrant halt

Generate the documents

Now, let's generate documents for the man pages:

./main.py dirparse src
./main.py generate public_html

the-docs's People

Contributors

davidpoblador avatar ifosch avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

the-docs's Issues

Create URLifier

If contents of the sections contain a url, it should become a link

Figure hreflang in the future

Your site has no hreflang tags.
Google uses hreflang tags to match the user's language preference to the right variation of your pages.

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.