Qi Xiao 5f1673c6c4 Use go-cmp to report unexpected test results. 2 years ago
..
blog 1dec1fe06f website: Mark up keys with the standard <kbd> tag. 2 years ago
cmd 6f97ad0e37 website: Remove support for the "all" category from gensite. 2 years ago
favicons 88c1d1514f website: Restructure directory. 4 years ago
fonts b49523345e website: Serve fonts as individual files. 2 years ago
get 1dec1fe06f website: Mark up keys with the standard <kbd> tag. 2 years ago
learn 1dec1fe06f website: Mark up keys with the standard <kbd> tag. 2 years ago
ref d3a31ae193 Revamp command-line flag doc. 2 years ago
tools 0e48191446 website: Make the @ttyshot dependency more accurate. 2 years ago
ttyshot ae1dbb3ff6 Update the "pipelines" ttyshot on homepage. 2 years ago
.gitignore 97c9f73559 Replace the @elvdoc macro with a @module macro. 3 years ago
Makefile 29fc9a5fe9 website/Makefile: Prevent removal of intermediate targets. 2 years ago
README.md 7a40cf1fea website: Rename the "genblog" tool to "gensite". 2 years ago
gen-fonts.elv b49523345e website: Serve fonts as individual files. 2 years ago
go.mod 8e90bf88e9 Update dependencies. 2 years ago
go.sum 5f1673c6c4 Use go-cmp to report unexpected test results. 2 years ago
home.css c1cf368db7 website: Fix reflow on homepage. 2 years ago
home.js c18666d50b website: Fix variable declaration in home.js. 2 years ago
home.md 1dec1fe06f website: Mark up keys with the standard <kbd> tag. 2 years ago
icon-font.css 50b0db0a59 website: Add anchor link for each header. 2 years ago
index.toml 50b0db0a59 website: Add anchor link for each header. 2 years ago
reset.css 1dbccad571 _website -> website. 4 years ago
style.css 1dec1fe06f website: Mark up keys with the standard <kbd> tag. 2 years ago
template.html 1c1227324e website: Revamp the learn index page. 2 years ago

README.md

This directory contains source for Elvish's official website.

The documents are written in GitHub-flavored markdown sprinkled with some HTML and custom macros. Most of them can be viewed directly in GitHub; notable exceptions are the homepage (home.md) and the download page (get/prelude.md).

Building

The website is a collection of static HTML files, built from Markdown files with a custom toolchain. You need the following software to build it:

  • Go, with the same version requirement as Elvish itself.

  • Pandoc 2.2.1 (other versions in the 2.x series might also work).

  • GNU Make (any "reasonably modern" version should do).

To build the website, just run make. The built website is in the _dst directory. You can then open _dst/index.html or run an HTTP server within _dst to preview.

NOTE: Although the website degrades gracefully when JavaScript is disabled, local viewing works best with JavaScript enabled. This is because relative paths like ./get will cause the browser to open the corresponding directory, instead of the index.html file under it, and we use JavaScript to patch such URLs dynamically.

Building the docset

Building the docset requires the following additional dependencies:

  • Python 3 with Beautiful Soup 4 (install with pip install bs4).

  • SQLite3 CLI.

Commit History

These files used to live in a separate repository. However, because @xiaq did not merge the repositories in the correct way (he simply copied all the files), the commit history is lost. Please see that repository for a full list of contributors.