Skip to content
No description or website provided.
CSS HTML Ruby Dockerfile JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.docker
.github
_source
lib
.dockerignore
.gitattributes
.gitignore
Dockerfile
Gemfile
Gemfile.lock
LICENSE.adoc
README.adoc
Rakefile
_config.yml

README.adoc

KiCad Docs Website Source

Docs website source for kicad :D

Prerequisites

  • Ruby 2.3 or higher

  • Bundle

Getting started

Ruby deps

After cloning the project, run

bundle install

to download the required ruby packages.

Kicad-doc source

git clone https://github.com/KiCad/kicad-doc.git kicad-doc

Build each required branch version as defined in _source/_data/versions.yml Take the entire resulting /build/ folder (literally the entire folder) and rename it to the <VERSION> folder here

Note
/kicad-doc-built/<VERSION>/
This needs to be automated later for "local development"

Process the docs

The "build" folder docs then need to be transformed and wrestled into their final form for the site.

To do this just run

rake process_files

Running the site in development

Basic development can then be done by

jekyll serve

Running the complete site container

Local verification of the container for the pod can be tested by building it, for exmaple with:

docker build -t kicadeda/kicad-docs-website .

And then it can be served locally by

docker run --rm -p 8081:8081 kicadeda/kicad-docs-website

To debug or inspect the stuff included in the image use

docker run --rm --entrypoint=ash -it kicadeda/kicad-docs-website

Or if the container is already running

docker exec -it <container id> ash

If editing the nginx config /etc/nginx/conf.d/default.conf you will want to execute

nginx -s reload

To reload the config without causing nginx to stop which would terminate the container

You can’t perform that action at this time.