Qi Xiao
ffd2152a19
website: Use a pkg/md-based HTML renderer.
...
Pandoc is no longer required to build the website.
2022-11-08 13:59:30 +00:00
Qi Xiao
82a72e31e3
website: Make ttyshots look like transcripts.
...
This further simplifies the op structure - only code input and tmux commands are
necessary now; waiting for prompts is now implicit.
2022-08-09 13:44:11 +01:00
Qi Xiao
fc3dcaf883
website: Move ttyshots to be side by side with markdown files.
...
Also rewrite the documentation.
2022-08-04 23:38:58 +01:00
Qi Xiao
935b9603f2
website: Move ttyshot generation rules to ttyshot/Makefile.
...
Ttyshots are committed into the repo, and should not be regenerated during a
normal website building process.
2022-07-31 22:18:59 +01:00
Qi Xiao
78c52ad1ff
website: Make tool binary depend on every file in source dir.
...
With the use of go:embed, non-Go files can affect the tools too.
2022-07-31 21:55:47 +01:00
Qi Xiao
14a9f57c6b
website: Add make rule for generating ttyshot.
2022-07-31 17:03:25 +01:00
Qi Xiao
29fc9a5fe9
website/Makefile: Prevent removal of intermediate targets.
2022-01-03 17:54:06 +00:00
Qi Xiao
a5bc536f4d
website: Make the tool dependency for %.html more accurate.
...
Only depend on the tools referenced by tools/md-to-html. This uses "grep -o",
which is not part of POSIX but is supported by both GNU and BSD greps, so widely
enough.
2022-01-01 15:59:56 +00:00
Qi Xiao
7a40cf1fea
website: Rename the "genblog" tool to "gensite".
...
Also rename internal references to the "blog" to "site" when it refers to the site as the whole (instead of https://elv.sh/blog ).
2022-01-01 12:10:26 +00:00
Qi Xiao
71d885c4fa
website/Makefile: add @ttyshot dependencies.
...
Also rename the ref-deps script to extra-deps now that its scope is a bit larger.
2021-12-28 13:13:43 +00:00
Qi Xiao
b342163e4e
website: Add Python script to check relative links.
2021-11-29 19:59:26 +00:00
Qi Xiao
7f820c0ff1
website: Rewrite Makefile.
...
* Reorder the targets to be top-down
* Make the tool binaries individual real targets, rather than a phony target
* Use .SECONDEXPANSION to determine dependencies of tool binaries and HTML outputs precisely
2021-11-29 15:32:13 +00:00
Qi Xiao
b49523345e
website: Serve fonts as individual files.
...
Upsides:
- Removing the render-blocking fonts.css allows the page to be visible while the
font is being loaded.
- The original WOFF2 files are smaller than the base64-encoded version in
fonts.css.
- Browsers may be smart enough to not download fonts that are not needed.
The only downside is that this requires the browser to make more requests - up
to 6 for all 6 font files. But this is not a problem with modern browsers.
2021-11-10 23:43:44 +00:00
Qi Xiao
57daf0708f
website/Makefile: Remove docset files in the clean target.
2021-08-22 23:16:19 +01:00
Qi Xiao
2bb3c5f703
Convert mkdocset to POSIX sh script.
2021-06-14 23:18:22 +01:00
Qi Xiao
7626616abf
Remove navbar and hide ToC in docset files.
...
This is implemented by using an environment variable ELVISH_DOCSET_MODE to
control the template.
2021-06-13 01:46:27 +01:00
Qi Xiao
9ffa63ae96
website: Update the get page.
...
* Add TOC.
* Tweak the OS packages section a bit.
* Unbreak the NEXT-RELEASE link by creating it as a symlink.
Also remove an unnecessary "./" in Makefile.
2021-02-15 21:21:41 +00:00
Shengjing Zhu
6c08de0ff3
Fix typos found by codespell
2020-10-10 22:47:50 +01:00
Qi Xiao
b5ba977266
website: Optimize fonts by embedding all fonts into a single CSS.
...
Also substract the subset of glyphs that we need to reduce the size of the fonts.
2020-06-15 00:06:28 +01:00
Qi Xiao
88c1d1514f
website: Restructure directory.
...
* Remove the _ prefix from directories.
* Move cmd/website -> website/cmd.
2020-06-14 13:56:58 +01:00
Qi Xiao
ba4f672694
website/Makefile: add genblog as a nop target to avoid breaking elves/up.
2020-06-14 13:43:37 +01:00
Qi Xiao
f5bf45ed5c
Vendor the genblog command.
...
This simplifies the website toolchain to no longer depend on an external
repository, and allows developing the genblog command in lockstep with the needs
of the website.
2020-06-14 12:45:17 +01:00
Qi Xiao
2edf75c017
website/Makefile: Avoid touching go.mod when getting genblog.
2020-03-31 23:38:45 +01:00
Qi Xiao
6c8b1cf455
website: Add an elvdoc pass when generating HTML.
2019-12-26 12:43:22 +00:00
Qi Xiao
6f02eeb108
Move Go programs in website/_tools to cmd/website.
...
They also live in separate directories now, so that unit tests can be added in
future.
2019-12-26 11:29:43 +00:00
Qi Xiao
1dbccad571
_website -> website.
...
Add a symlink _website for compatibility now. It will be removed after the
elves/up script is updated.
2019-12-23 20:04:14 +00:00
Qi Xiao
e7d11e28f1
Move website to the _website directory.
2018-08-27 21:46:32 +01:00
Qi Xiao
c0fd2a9170
website: Reintroduce mis-deleted tool sources.
2018-08-27 21:37:53 +01:00
Qi Xiao
d3e7a69b3b
website: Reorganize.
...
Every subdirectory other than src/ now has a _ prefix. The content of
src/ is moved into the root of website directory itself.
2018-08-27 21:11:41 +01:00
Qi Xiao
d559723cf3
website: Fix default PUBLISH_DIR
...
The default value contained a trailing space...
2018-06-14 21:53:47 +01:00
Qi Xiao
d732a99837
website: Link favicons and assets into dst/, and fix publish.
2018-06-14 00:43:31 +01:00
Qi Xiao
54e4d556f6
website: In Makefile, make sure genblog is installed.
2018-06-13 00:44:06 +01:00
Qi Xiao
3471032e23
website: Attempt to fix Makefile for GNU Make >= 4.
...
GNU Make >= 4 seems to behave differently with regards to dependencies
with slashes in them. In particular, the dependency on tools/* in the
wildcard rule
%.html: %.md tools/...
does not seem to cause tools/... to be built correctly. Working around
this by putting all tools in the root directory, with binaries ending in
".tool".
2018-06-12 22:58:16 +01:00
Qi Xiao
05242b386e
website: Document the Makefile.
2018-06-05 21:38:39 +01:00
Qi Xiao
9449df56af
Move source code for the website into this repo.
...
The website contains documentations. Merging these two repos makes them
more discoverable, and encourages updating the code and doc at the same
time.
2018-06-05 21:36:32 +01:00