-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from irskep/feature/extra-static-files
Various important improvements I wrote on an airplane
- Loading branch information
Showing
47 changed files
with
4,436 additions
and
6,143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
This is the API reference documentation for Djockey. To read the primary docs, go to [https://steveasleep.com/djockey/](../plugins/index.html). | ||
|
||
The API is unstable and there are _no_ semver guarantees about compatibility at this time. Check back around October, or [open an issue](https://github.com/irskep/djockey/issues/new) describing your use case. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
order: -5 | ||
--- | ||
# Custom markup | ||
|
||
{tag=aside .caution} | ||
::: | ||
The details of this markup are likely to change, since Djockey is experimental. | ||
::: | ||
|
||
## Overriding HTML tags | ||
|
||
Djot does not ([yet](https://github.com/jgm/djot/issues/240)) support arbitrary HTML tags in its input or output. Djockey works around this by postprocessing Djot's HTML output. Whenever you add a `tag=foo`{.language-text} attribute, Djockey will replace the element's tag with the attribute's value. | ||
|
||
```djot | ||
{tag=details} | ||
::: | ||
{tag=summary} | ||
I'm from Mattel! | ||
|
||
Well, I'm not really from Mattel. I'm actually from a smaller | ||
company that was purchased in a leveraged buyout. | ||
::: | ||
``` | ||
|
||
{tag=details} | ||
::: | ||
{tag=summary} | ||
I'm from Mattel! | ||
|
||
Well, I'm not really from Mattel. I'm actually from a smaller | ||
company that was purchased in a leveraged buyout. | ||
::: | ||
|
||
```html | ||
<details> | ||
<summary>I’m from Mattel!</summary> | ||
<p>Well, I’m not really from Mattel. I’m actually from a smaller | ||
company that was purchased in a leveraged buyout.</p> | ||
</details> | ||
``` |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
title: "Foundations" | ||
order: 0 | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,85 @@ | ||
--- | ||
title: Home | ||
title: Overview | ||
--- | ||
# Djockey | ||
# Overview | ||
|
||
Djockey is a powerful but experimental static site generator for technical writing and project documentation. The goal is to have the depth and extensibility of [Sphinx](https://www.sphinx-doc.org/en/master/) with the ease-of-use and built-in power of [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/). | ||
Djockey is an experimental but powerful static site generator for technical writing and project documentation. The goal is to have the depth and extensibility of [Sphinx](https://www.sphinx-doc.org/en/master/) with the ease-of-use and built-in power of [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/). | ||
|
||
- Write [Djot](https://djot.net) or [GitHub Flavored Markdown](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax) | ||
- Output HTML or Markdown, so your docs are readable in the GitHub interface or on a nice web site | ||
- Rich cross-references, checked at build time | ||
- Tree-based plugins—stop writing Markdown tokenizer hacks! | ||
- Biased toward static site rendering over client-side JS | ||
- De-emphasizes client-side JS, has a small core and a few small dependencies | ||
|
||
## Installation | ||
|
||
You can invoke `djockey`{.language-sh} directly with `npx`{.language-sh} or `bunx`{.language-sh}. | ||
|
||
{.tab-group} | ||
::: | ||
|
||
### Node | ||
|
||
```sh | ||
npx djockey path/to/docs | ||
``` | ||
|
||
### Bun | ||
|
||
```sh | ||
bunx djockey path/to/docs | ||
``` | ||
|
||
::: | ||
|
||
or install it in your JS project and then run it: | ||
|
||
{.tab-group} | ||
::: | ||
|
||
### Node | ||
|
||
```sh | ||
npm install djockey | ||
npm run djockey path/to/docs | ||
``` | ||
|
||
### Bun | ||
|
||
```sh | ||
bun install djockey | ||
bunx djockey path/to/docs | ||
``` | ||
::: | ||
|
||
### Pandoc | ||
|
||
In order to use Markdown, you must also [install Pandoc](https://pandoc.org/installing.html). | ||
|
||
## Write a bare-bones config file | ||
|
||
Once you've [installed Djockey](#Installation), create a file called `djockey.yaml`{.language-sh} that looks like this: | ||
|
||
```yaml | ||
input_dir: path-to-your-docs | ||
output_dir: | ||
html: docs_out/html | ||
gfm: docs_out/gfm | ||
site_name: "Your Name Here" | ||
url_root: https://where-docs-will-be-deployed | ||
|
||
html: | ||
footer_text: "©2024 You" | ||
``` | ||
|
||
Now try running `npx djockey --local`{.language-sh}. Maybe it'll just work! If not, it should tell you what's wrong. | ||
|
||
## Building for local viewing vs deployment | ||
|
||
When your site is generated, all internal URLs are prefixed with the value of `urlRoot`, which is counterproductive if you want to view your site without a web server and some edits to `/etc/hosts`. | ||
|
||
To have Djockey use file URLs instead, only valid on your own machine and not requiring a web server, pass `--local`. | ||
|
||
```sh | ||
djockey my_docs_dir --local | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
:root { | ||
--fw-bold: 700; /* Plex doesn't go up to 800 */ | ||
} | ||
|
||
body { | ||
font-family: "IBM Plex Sans", var(--f-system); | ||
} |
Oops, something went wrong.