elvish/website
Qi Xiao a0959c2273 website: Give the nav bar a large z-index.
Otherwise it could be covered by some of the content when scrolling up.
2021-11-09 12:41:45 +00:00
..
blog Publish 0.16.3 2021-08-28 14:31:01 +01:00
cmd URL-encode docset anchors. 2021-08-31 20:16:56 +01:00
favicons website: Restructure directory. 2020-06-14 13:56:58 +01:00
get website/get: "latest release" -> "latest packaged release" in package manager instructions. 2021-10-22 18:00:46 +01:00
learn Remove references to ~/.elvish in documentation. 2021-10-23 12:16:50 +01:00
ref Document the legacy ~/.elvish/lib directory. 2021-10-23 13:56:58 +01:00
tools URL-encode docset anchors. 2021-08-31 20:16:56 +01:00
ttyshot website/learn: Add new "quick tour" doc. 2021-03-26 15:16:43 +00:00
.gitignore Replace the @elvdoc macro with a @module macro. 2021-06-14 22:17:07 +01:00
fonts.css website: Fix mistyped font-stretch in fonts.css. 2021-03-22 12:45:12 +00:00
gen-fonts-css.elv website: Fix mistyped font-stretch in fonts.css. 2021-03-22 12:45:12 +00:00
go.mod Revert "Revert "Require Go >= 1.16."" 2021-08-23 00:23:55 +01:00
go.sum Upgrade dependencies. 2021-08-23 00:05:35 +01: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: Fix reflow on homepage. 2021-11-02 22:30:31 +00:00
icon-font.css _website -> website. 2019-12-23 20:04:14 +00:00
index.toml website: Optimize fonts by embedding all fonts into a single CSS. 2020-06-15 00:06:28 +01:00
Makefile website/Makefile: Remove docset files in the clean target. 2021-08-22 23:16:19 +01:00
README.md Document additional requirements for building the docset. 2021-08-31 20:16:56 +01:00
reset.css _website -> website. 2019-12-23 20:04:14 +00:00
style.css website: Fix reflow on homepage. 2021-11-02 22:30:31 +00:00
template.html website: Give the nav bar a large z-index. 2021-11-09 12:41:45 +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 purely static one. It is built with a custom toolchain with the following dependencies:

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

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

  • A Go toolchain, for building genblog and some custom preprocessors in the tools directory.

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.