This the source for the new KiCad website, anno 2015.
The kicad-website repository is dual licensed. You may distribute it and/or modify it under the terms of either the GNU General Public License (http://www.gnu.org/licenses/gpl.html), version 3 or later, or the Creative Commons Attribution License (http://creativecommons.org/licenses/by/3.0/), version 3.0 or later.
== Prerequisites You will need these packages:
Using asciidoctor is a requirement, because the original asciidoc runs into trouble parsing the adoc files with TOML headers in them. asciidoctor also has a few extra features for web pages.
== Testing
Execute the hugo command in the repository root to build and serve the files for development:
Observe the console output as it will tell you the address where the page is accessible in a browser. The -w flag tells it to watch the filesystem for changes to rebuild automatically. Also, the page in the browser will autorefresh once the rebuild completes successfully.
== Contributing Please read the link:CONTRIBUTING.adoc[CONTRIBUTING Guidelines]
== Docker A dockerfile is included that builds and packages the website with an nginx instance
== Hints === Admonition icons For icons to appear in admonition blocks, you must add
:icons:
:iconsdir: /img/icons/
at the top of the asciidoc file but below the hugo template header.
=== adoc partials Please name any reusable asciidoc files with a leading underscore in the filename and ending in .adoc. Hugo is configured to ignore such files on purpose.
== External resources To enhance security a little, we implement Content-Security-Policy headers which are set by nginx. These dictate to the browser what resource paths are allowable for scripts, videos, images, etc And while we do use HTTPS, CSP is just another tool to potentially stop browser side and other attacks.
This means: