open-vault/website
2018-11-15 13:56:12 -08:00
..
assets website: add js-utils and update components to accommodate (#5751) 2018-11-14 11:13:02 -08:00
data Add docs for openapi endpoint (#5766) 2018-11-13 09:39:19 -08:00
deploy fix github repo reference (#5555) 2018-10-19 09:54:56 -07:00
source Fix incorrect parameter name in docs (#5798) 2018-11-15 13:56:12 -08:00
bootstrap.sh New Docs Website (#5535) 2018-10-19 08:40:11 -07:00
config.rb Update config.rb 2018-11-13 19:58:41 -08:00
Gemfile New Docs Website (#5535) 2018-10-19 08:40:11 -07:00
Gemfile.lock New Docs Website (#5535) 2018-10-19 08:40:11 -07:00
LICENSE.md Update license 2017-03-08 11:38:38 -08:00
Makefile website: Fix makefile commands to quote command (#5559) 2018-10-19 11:46:36 -07:00
README.md update website readme with instructions for updating navigation (#5748) 2018-11-09 13:11:46 -05:00

Vault Website

This subdirectory contains the entire source for the Vault Website. This is a Middleman project, which builds a static site from these source files.

Updating Navigation

There are a couple different places on the website that present navigation interfaces with differing levels of detail.

On the homepage, docs index page, and api docs index page, there are grids of major categories that look like this. These major category grids can be updated through data/docs_basic_categories.yml and data/api_basic_categories.yml.

On the docs and api index pages, there are more detailed breakdowns of top-level documentation pages within each category that look like this. These more detailed category listings can be updated through data/docs_detailed_categories.yml and data/api_detailed_categories.yml.

Finally, within a given docs page, there is a sidebar which displays a fully nested version of all docs pages. This sidebar navigation can be updated through via middleman's layouts, found at source/layouts/docs.erb and source/layouts/api.erb. You will see within these files that it is no longer necessary to type out full nested html list item and link tags, you can simply add the documentation page's slug, defined as sidebar_current within the frontmatter of any docs markdown file. The sidebar nav component will go find the page by slug and render out its human-readable title and a link for you. This component does not allow broken links or nesting mistakes, so if you make a typo on the slug or put a page in the wrong category, the build will fail.

Contributions Welcome!

If you find a typo or you feel like you can improve the HTML, CSS, or JavaScript, we welcome contributions. Feel free to open issues or pull requests like any normal GitHub project, and we'll merge it in.

Running the Site Locally

Running the site locally is simple. Clone this repo and run make website. If it is your first time running the site, the build will take a little longer as it needs to download a docker image and a bunch of dependencies, so maybe go grab a coffee. On subsequent runs, it will be much faster as dependencies are cached.

Then open up http://localhost:4567. Note that some URLs you may need to append ".html" to make them work (in the navigation).

Note: We are currently working through some issues with the make website command introduced by architecture changes to the site. You will likely experience slow performance while we get these issues patched up. In order to bypass these issues, you can run middleman directly on your machine by running gem install middleman, then bundle && bundle exec middleman. Assuming you have a reasonably recent version of ruby installed, this will run the site locally.