Giter VIP home page Giter VIP logo

docs-webtemplate's Introduction

Introduction

This repository contains AGL documentation website template, rendering is visible at http://docs.automotivelinux.org This website relies on the generator located in docs-tools

Installing

Get the setupdocs script to initialise your environment.

wget https://raw.githubusercontent.com/automotive-grade-linux/docs-webtemplate/master/setupdocs.sh

This script fetches docs-tools, install npm modules.

mkdir docs-webtemplate
bash setupdocs.sh --directory=docs-webtemplate

For consulting help, do:

bash setupdocs.sh --help

Configure webdoc

Some default configuration options can be overridden in the project directory. For this, you can adjust the configuration file conf/AppDefaults.js

Other configuration files in conf/ starting by an underscore (_) are used by Jekyll. Some options may also be adjusted in particular in conf/_config.yml.

generate a 1st site from your template

 ./doctools/docbuild --clean  # deleted all generated file if any
 ./doctools/docbuild --fetch [--force]  # collect doc from github (fetch list in content/toc/*/fetch_files.yml)
 ./doctools/docbuild --build --serve --watch --incremental # build config/tocs, generate html and start a local webserver
 

 xdg-open http://localhost:4000

 ./doctools/docbuild --push --verbose # push generated to production webserver (check conf/AppDefault 1st)

Alternatively, a Makefile can be used and defines the most common operations:

 make fetch
 make localFetch
 make build
 make push
 make serve
 make clean

Work with local repos

For local fetch, a specific file named "__fetched_files_local.yml" was introduced.

This file is used to overload url_fetch in fetched_files.yml in order to use local repositories on not remote ones.

Thus, this file is needed to be added in the docs-webtemplate root, see an example below:

############__fetched_files_local.yml##############
-
    url_fetch : <pathToDocsSources>/docs-sources/
    git_name   : "automotive-grade-linux/docs-sources"
-
    url_fetch : <pathToXdsDocs>/xds-docs/
    git_name   : src/xds/xds-docs

###################################################

Start writing documentation

  • the directory ./site holds your website content

  • site/* directories not prefixed with "_" represent en entry within the menu

  • site/_* directories contain template, configuration, options used by Jekyll

  • site/_data is a special directory that hold both static and generated files to adjust page/site values within html pages

  • content/toc/*/toc_VERSION_LANGUAGE.yml TOC(TableOfContent) and Fetch definitions

  • site/_layouts and site/_includes holds page template

  • site/static holds assets (static images, CSS etc.)

  • register at https://community.algolia.com/docsearch/ and update your apikey into conf/_config.yml

Notes

  • The setupdocs.sh script can be used to update the docs-tools repository.
  • The setupdocs.sh script cannot update the current repository, use git commands instead.

bugs

 --watch to automatically regenerate pages on markdown file, you should force "./build --configs" when changing TOC or versions.

docs-webtemplate's People

Contributors

8000ff avatar benierc avatar corentinlgs avatar ddtlk avatar dl9pf avatar dominig avatar glunardi avatar hiroshi-kojima avatar hrabbey avatar jensbocklage avatar jobol avatar johanncahier avatar khilman avatar knimitz avatar kooltux avatar leon-anavi avatar mudcam avatar pbrkr avatar ronan22 avatar scottrifenbark avatar sebd71 avatar vstarwalt avatar waltminer avatar walzert avatar

Watchers

 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.