Skip to content

Commit

Permalink
Merge #404
Browse files Browse the repository at this point in the history
404: docs: update structure r=roberth a=woile

related #388 

Co-authored-by: Santiago Fraire <[email protected]>
Co-authored-by: Robert Hensing <[email protected]>
  • Loading branch information
3 people authored Jul 3, 2023
2 parents fab7c94 + f49b3cd commit 7e1629c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions site/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/getting-things.html /cheat-sheet.html
1 change: 1 addition & 0 deletions site/site-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
done
mdbook build --dest-dir $TMPDIR/out
cp -r $TMPDIR/out/html $out
cp _redirects $out
echo '<html><head><script>window.location.pathname = window.location.pathname.replace(/options.html$/, "") + "options/flake-parts.html"</script></head><body><a href="options/flake-parts.html">to the options</a></body></html>' \
>$out/options.html
Expand Down
11 changes: 6 additions & 5 deletions site/src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# Summary

- [Introduction](./README.md)
- [Getting Started](./getting-started.md)
- [Cheat Sheet](./cheat-sheet.md)
- [Tutorials]()
- [Best Practices for Module Writing](./best-practices-for-module-writing.md)
- [Multi-platform: Working with `system`](./system.md)
- [Guides]()
- [Getting Started](./getting-started.md)
- [Explore and debug option values](./debug.md)
- [Define a Module in a Separate File](./define-module-in-separate-file.md)
- [Define Custom Flake Attribute](./define-custom-flake-attribute.md)
- [Dogfood a Reusable Flake Module](./dogfood-a-reusable-module.md)
- [Mixed Documentation]()
- [Explanation]()
- [Overlays](./overlays.md)
- [Best Practices for Module Writing](./best-practices-for-module-writing.md)
- [Working with `system`](./system.md)
- [Getting Things](./getting-things.md)
- [Reference Documentation]()
- [Module Arguments](./module-arguments.md)
- [Options](./options/flake-parts.md)
Expand Down
4 changes: 2 additions & 2 deletions site/src/getting-things.md → site/src/cheat-sheet.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

# Getting Things
# Cheat Sheet

Flake-parts offers a couple of ways to access the same thing. This gives you
freedom to pick the most convenient syntax for a use case.

This page is like a cheat sheet, for you to get a feel for what's what.
This page is for you to get a feel for what's what.

## Get a locally defined package

Expand Down
2 changes: 1 addition & 1 deletion site/src/system.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# `system`
# Multi-platform: `system`

In Nix, "system" generally refers to the cpu-os string, such as `"x86_64-linux"`.

Expand Down

0 comments on commit 7e1629c

Please sign in to comment.