Giter Site home page Giter Site logo

masterlopez / docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thethingsnetwork/docs

1.0 2.0 0.0 16.39 MB

Documentation for The Things Network

Home Page: https://www.thethingsnetwork.org/docs/

Ruby 10.81% HTML 43.58% CSS 33.31% JavaScript 12.30%

docs's Introduction

The Things Network Documentation Build Status

This is a Jekyll site configured to be build and served through GitHub Pages.

Update content

Because we let GitHub Pages do the Jekyll builds the website will be updated automatically after pushing commits or merging pull requests.

Guidance

  • The homepage for the site is index.html.
  • The guides are a Jekyll collection in the _content folder, grouped per version.
  • Use the main file of each guide for the intro.
  • Use the sections front matter to include additional content from files relative to the guide, preferably in a subfolder with the same name. Make sure to start these files with _ to prevent Jekyll for outputting them as stand-alone pages.
  • Store guide assets in the same folder as the markdown you need it in and include them by their filename. You can also use relative paths to re-use images from other guides.
  • The /docs baseurl will be prepended to any links and image sources that start with /.
  • Always end internal links with /.
  • Use blockquotes (>) to create callouts for important notes.
  • If you do a lot of edits please use a local build to preview and test.

Build local for preview and design

  1. Install Ruby 2.0.0 or higher

  2. Install Bundler:

    $ gem install bundler
  3. Install Jekyll using Bundler:

    $ bundle install
  4. Install Node.js and NPM.

  5. Install front-end and development dependencies:

$ npm install
  1. Run Webpack, build the local Jekyll site and watch for changes:

    $ npm run dev

NOTE: Running npm install will overwrite the git pre-commit hook to execute npm run webpack, npm test and npm run add to append the webpack build.

Guidance

Test Build Status

Pull Requests and Pushes will be tested automatically by Travis using the test script. This will use markdown-spellcheck on the Markdown source files, let Jekyll try to build the site and then use HTMLProofer to test for broken links etc.

To run the test local, follow Build local to install the dependencies and then run:

./test

The test will also run automatically before every commit.

To ignore spelling errors for all or certain files, add them to .spelling.

Automatic updates

Some content we source directly from elsewhere, e.g. the MQTT API Reference.

Update

  1. Follow the previous section to install NPM and dependencies.

  2. Install Gulp:

    sudo npm i --global gulp
  3. Run the pull task:

    gulp pull

Source

To source more content from elsewhere edit gulpfile.js.

docs's People

Contributors

dorianamouroux avatar fokkezb avatar forrestfiller avatar h0l0gram avatar htdvisser avatar kersing avatar

Stargazers

 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.