Giter VIP home page Giter VIP logo

catenis-api-docs's Introduction

Catenis API Documentation Generator

This project uses slate to generate documentation for the Catenis API services.

How to Set up Development Environment

Within the project root directory run the commands.

bundle install
bundle exec middleman server

You might need to install bundler to run the bundle commands.

You can now see the docs at http://localhost:4567.

How to edit the docs.

The documentation is comprised of one main markdown file (/sorce/index.html.md) and several include markdown files found in the /source/includes/ directory.

The styles can be edited within the /source/stylesheets/ directory. screen.css.scss is the main css file.

Edit these documents and refresh the browser to see changes (http://localhost:4567).

How to Deploy Documentation

Execute the shell script predeploy.sh to prepare the Catenis API documentation to be deployed.

To build the static site for the target API version, pass the argument build to the pre-deploy script. The static contents of the site is built to the build/ directory and copied to the appropriate directory under the deploy/ directory according to the target API version.

To bundle up the documentation for deployment, including the static site for all target API versions already built, pass the argument bundle to the pre-deploy script. The bundled up documentation โ€” a compressed tar file named CatenisAPIDoc.tar.gz โ€” is placed in the deploy directory.

UPDATE: the bundle (tar) file should NOT be generated in this project anymore. To deploy the documentation, after building the static site(s), go to the CatenisAPIDocFrontPage project and follow the steps described in its README file.

How to Update Slate

Some times Slate has to be updated for compatibility with new browser versions. To do this run the following commands.

git remote add upstream https://github.com/lord/slate.git
git fetch upstream
git checkout master
git merge upstream/master

After calling merge, the repo will likely have merge conflicts with the .md files we customized. To automatically fix the conflicts run the commands.

git checkout --ours .

This will let us only keep our local files. Then commit and push!

Contributors

Sungwoo Bae - [email protected] || [email protected]

catenis-api-docs's People

Contributors

lord avatar masterodin avatar claudiosdc avatar dependabot-preview[bot] avatar chrissrogers avatar realityking avatar dependabot[bot] avatar cvkef avatar mikeralphson avatar bootstraponline avatar marcguyer avatar maks3w avatar greysteil avatar swbae31 avatar anfedorov avatar djpowers avatar dlackty avatar victorquinn avatar rezanachmad avatar kevin-buttercoin avatar jdahdah avatar coliff avatar blackxored avatar pomier avatar rlord avatar ritesh99rakesh avatar rickyrauch avatar mccricardo avatar readmecritic avatar sobstel avatar

Watchers

 avatar Andre De Castro 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.