Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ _site
_stdlib

# Pagefind search index is generated by CI (.github/workflows/pages.yml) on
# every deploy. Never commit it — a hand-committed index drifts out of sync
# every deploy. Never commit it: a hand-committed index drifts out of sync
# with the content and breaks search.
pagefind/
node_modules/
Expand Down
28 changes: 19 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,18 @@ This folder contains the complete source of the WurstScript website, configured
`bundler install`


4. Run the server with:
4. Generate the API reference from a sibling checkout of `WurstStdlib2`
(requires Deno 2.x):

```shell
cd tools/docgen
deno task gen
cd ../..
```

See [the doc generator guide](tools/docgen/README.md) for custom source paths.

5. Run the server with:

`bundler exec jekyll serve`

Expand Down Expand Up @@ -57,14 +68,13 @@ To create a new tutorial:

Adding a standard library doc page works almost the same as tutorials.

* Create a new table of contents file in `_doc/stdlib/`
* Create a new set of tuturial pages in a subfolder of `_doc/stdlib/`, e.g. `_doc/stdlib/new_doc`
* Define the pages by changing the contents of `_doc/stdlib/new_doc/`
* __This part differs__ Add the new doc page to the stdlib index in `_doc/stdlib/intro.md`. Entries should be alphabetically sorted.
* Setup `new_doc.md` as necessary for your pages:
- Edit the title, excerpt, date, color.
- Change the `sections` to match the uri of the pages of your tutorial.
* Write your new_doc pages, being sure to update the heading sections as necessary.
* Create a guide in `_doc/stdlib/` with the `stdlibdoc` layout. Use an existing guide as a starting point.
* Put supporting section pages in a subfolder and list their document IDs in the guide's `sections` frontmatter.
* Link the guide from the relevant category in `_doc/stdlib/intro.md`.
* Add its package-to-guide mapping to `_data/stdlib_curated.yml` to link it from the generated API reference.

API pages under `_doc/stdlib/ref/` are generated from standard-library source comments.
See [the doc generator guide](tools/docgen/README.md) before updating them.

## Search Index

Expand Down
1 change: 0 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ url: https://wurstlang.org
baseurl: ""
logo: /assets/images/wurst_icon64.png
image: /assets/images/wurst_icon300.png
blogurl: /blog
highlighter: rouge
title: &site_title WurstScript
description: &site_description Programming language and IDE that compiles to Jass/Lua which is used in WarCraft III. The first complete, all-in-one warcraft modding environment. Get starting making your own warcraft 3 maps today - cross platform and editor independent.
Expand Down
10 changes: 0 additions & 10 deletions _includes/branding_blog.html

This file was deleted.

18 changes: 0 additions & 18 deletions _includes/navigation_blog.html

This file was deleted.

28 changes: 0 additions & 28 deletions _includes/promo.html

This file was deleted.

94 changes: 0 additions & 94 deletions _layouts/documentation.html

This file was deleted.

88 changes: 0 additions & 88 deletions _layouts/post.html

This file was deleted.

95 changes: 0 additions & 95 deletions _layouts/tutorialdoc.html

This file was deleted.

Loading
Loading