elvish/website
Qi Xiao d3a31ae193 Revamp command-line flag doc.
- Document all flags, and remove doc for removed flags.

- Update in-code flag descriptions to be more consistent with the markdown doc.
2022-03-03 00:41:39 +00:00
..
blog website: Mark up keys with the standard <kbd> tag. 2022-02-21 00:38:06 +00:00
cmd website: Remove support for the "all" category from gensite. 2022-01-02 00:51:28 +00:00
favicons website: Restructure directory. 2020-06-14 13:56:58 +01:00
fonts website: Serve fonts as individual files. 2021-11-10 23:43:44 +00:00
get website: Mark up keys with the standard <kbd> tag. 2022-02-21 00:38:06 +00:00
learn website: Mark up keys with the standard <kbd> tag. 2022-02-21 00:38:06 +00:00
ref Revamp command-line flag doc. 2022-03-03 00:41:39 +00:00
tools website: Make the @ttyshot dependency more accurate. 2022-01-02 23:12:59 +00:00
ttyshot Update the "pipelines" ttyshot on homepage. 2022-01-02 23:13:18 +00:00
.gitignore Replace the @elvdoc macro with a @module macro. 2021-06-14 22:17:07 +01:00
gen-fonts.elv website: Serve fonts as individual files. 2021-11-10 23:43:44 +00:00
go.mod Update dependencies. 2022-03-01 01:10:24 +00:00
go.sum Update dependencies. 2022-03-01 01:10:24 +00:00
home.css website: Fix reflow on homepage. 2021-11-02 22:30:31 +00:00
home.js website: Fix variable declaration in home.js. 2021-11-09 12:13:16 +00:00
home.md website: Mark up keys with the standard <kbd> tag. 2022-02-21 00:38:06 +00:00
icon-font.css website: Add anchor link for each header. 2021-11-30 01:14:02 +00:00
index.toml website: Add anchor link for each header. 2021-11-30 01:14:02 +00:00
Makefile website/Makefile: Prevent removal of intermediate targets. 2022-01-03 17:54:06 +00:00
README.md website: Rename the "genblog" tool to "gensite". 2022-01-01 12:10:26 +00:00
reset.css _website -> website. 2019-12-23 20:04:14 +00:00
style.css website: Mark up keys with the standard <kbd> tag. 2022-02-21 00:38:06 +00:00
template.html website: Revamp the learn index page. 2022-01-01 16:34:05 +00:00

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.