Coder Social home page Coder Social logo

jhuiting / end-user-documentation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from atomisthq/docs

0.0 2.0 0.0 8.66 MB

End-user documentation sources and generator

License: GNU General Public License v3.0

TypeScript 1.15% HTML 19.87% CSS 56.71% JavaScript 2.45% Shell 4.23% Python 15.60%

end-user-documentation's Introduction

End-user documentation sources and generator

Build Status Slack Status

This repository contains the markdown sources for the documentation for Atomist. You can find the current version of the Atomist documentation at http://docs.atomist.com/.

Generating

Much of the documentation is hand-generated, so you can feel free to edit. The exception is the documentation for the Rug core types. Other than the index, it is generated every time tests are run in the Rug repository. When the tests are complete, all of the type docs will be in a single file named target/RugTypes.md. You can use the following commands to split file files up by type:

$ cd target
$ perl -lane 'if (/^## Type: /) { $t = $F[2]; $t =~ s/\`//g; $t =~ s/([A-Z])/-\L$1/g; $out = "rug-extension$t.md"; open FH, ">$out" } if (FH) { print FH }' RugTypes.md

You can then copy the files under docs/reference-docs/rug/types, omitting the files that document test types (Replacer*), internal (Pair, Service), base JavaClassOrInterfaceView, and base (Mutable*) types.

Releasing

When a push is made to this repository, the entire documentation is built again via a Travis job and published to http://atomist.github.io/end-user-documentation/ . The documentation is generated from markdown using mkdocs.

If the build is triggered by a tag of the form M.N.P, the site will be pushed to the Atomist GitHub Pages repository and served by GitHub at http://atomisthq.github.io and https://docs.atomist.com .

Build and serve the documentation locally

Generally speaking, you probably do not need to do anything with this repository aside from pushing markdown content.

However, if you want to make a change to the HTML template or serve the doc locally before a push, you should follow the next steps to gear up properly your environment.

First install Python

$ brew install python3

or

$ sudo apt-get install python3
$ curl -O https://bootstrap.pypa.io/get-pip.py
$ sudo python3.5 get-pip.py

Then create a virtual environment to host the dependencies:

$ pip3 install virtualenv
$ mkdir ~/.venvs
$ echo "export PIP_REQUIRE_VIRTUALENV=true" >> ~/.bashrc
$ source ~/.bashrc
$ virtualenv -p `which python3` ~/.venvs/userdocs

Every time you want to work on this repository, you shall activate that virtualenv in your terminal:

$ source ~/.venvs/userdocs/bin/activate

Now that the virtual environment is created, we can install the dependencies into it:

$ pip3 install -r requirements.txt
$ cd rug_pygments; python setup.py install; cd ..

You can now serve the documentation locally by running:

$ mkdocs serve

If all goes well, you can browse the documentation at http://127.0.0.1:8000 .

You can publish the docs manually from your local repository with the following command:

$ rm docs/CNAME && mkdocs gh-deploy && git checkout docs/CNAME

Conditions of use

This documentation build process is provided to the public purely for the purpose of testing documentation changes before submitting pull requests to the appropriate Atomist repository.

The documents produced by this build process may be published only on http://docs.atomist.com. They may not be published in any other form or on any other website without explicit permission.

end-user-documentation's People

Contributors

acolyer avatar cdupuis avatar ddgenome avatar gotcha avatar jessitron avatar jrday avatar kipz avatar lawouach avatar russmiles avatar whostolebenfrog avatar

Watchers

 avatar  avatar

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.