5 https://raw.githubusercontent.com/automotive-grade-linux/docs-sources/master/docs/handle-docs/documentation-usage.md
8 <!-- WARNING: This file is generated by fetch_docs.js using /home/boron/Documents/AGL/docs-webtemplate/site/_data/tocs/howto/master/howto-add-docs-handle-docs-book.yml -->
12 The [docs-webtemplate](https://github.com/automotive-grade-linux/docs-webtemplate)
13 repository contains AGL documentation website template, rendering is visible at
14 <https://docs.automotivelinux.org.>
15 This website relies on the generator located in
16 [docs-tools](https://github.com/automotive-grade-linux/docs-tools).
20 Get the ```setupdocs.sh``` script to initialize your environment.
23 wget https://raw.githubusercontent.com/automotive-grade-linux/docs-webtemplate/master/setupdocs.sh
26 This script fetches [docs-tools](https://github.com/automotive-grade-linux/docs-tools), install npm modules.
29 mkdir docs-webtemplate
30 bash setupdocs.sh --directory=docs-webtemplate
33 For consulting help, do:
36 bash setupdocs.sh --help
39 ## Building a local site
41 In docs-webtemplate directory:
47 For cleaning your work, use:
53 ## Documentation from local repositories
55 It is also possible to use markdown files from local repositories.
57 For local fetch, a specific file named ```__fetched_files_local.yml```
60 This file is used to overload ```url_fetch``` in section_<version>.yml
61 in order to use local repositories on not remote ones.
63 Thus, this file is needed to be added in the docs-webtemplate root,
67 ############__fetched_files_local.yml##############
69 url_fetch : <pathToDocsSources>/docs-sources/
70 git_name : automotive-grade-linux/docs-sources
72 url_fetch : <pathToXdsDocs>/xds-docs/
73 git_name : src/xds/xds-docs
75 git_name: AGL/meta-renesas-rcar-gen3
76 url_fetch: <pathToMetaRenesas>/meta-renesas-rcar-gen3
77 ###################################################
80 It is also possible to use ```id``` instead of ```git_name```.
84 [LinkChecker](https://wummel.github.io/linkchecker/) is a tool that allows to check all the hyperlinks in the site.
86 For testing hyperlinks as soon as the local site is running, do:
95 linkchecker http://localhost:4000
98 The ```linkchecker``` output will display the broken link and there location