-
Notifications
You must be signed in to change notification settings - Fork 91
Improved documentation #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 9 commits
6a67ecb
f499b20
e61fd11
7b42ce8
b1f15fe
986f8be
73db85c
d222c1c
5d37810
4cb1274
77b30ca
b97ead8
18c130d
3e03182
392c884
53a9132
999dc94
cedb1b3
1747bd0
476228a
e10cfcc
4956f28
88dfab6
ab86af7
b40e997
45f484f
28c8826
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name: Generate documentation | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ docs ] | ||
|
|
||
| jobs: | ||
| docs: | ||
| name: Build documentation | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/[email protected] | ||
| with: | ||
| fetch-depth: 0 | ||
| - uses: cachix/install-nix-action@v12 | ||
| with: | ||
| nix_path: nixpkgs=channel:nixos-20.09 | ||
| - run: nix-build ./docs -A manual -o manual | ||
| - uses: peaceiris/actions-gh-pages@v3 | ||
| with: | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| publish_dir: ./manual/book | ||
| cname: docs.robotnix.org | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| [book] | ||
| language = "en" | ||
| multilingual = false | ||
| src = "src" | ||
| title = "Robotnix" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| { pkgs ? import ../pkgs { } }: | ||
|
|
||
| with pkgs.lib; | ||
| let | ||
| eval = import ../default.nix { inherit pkgs; configuration = { }; }; | ||
|
|
||
| robotnixOptionsDoc = pkgs.nixosOptionsDoc { | ||
| inherit (eval) options; | ||
| }; | ||
|
|
||
| optionsMd = | ||
| let | ||
| options = robotnixOptionsDoc.optionsNix; | ||
| in | ||
| concatStrings (map | ||
| (name: | ||
| let | ||
| option = options.${name}; | ||
| body = '' | ||
| ${option.description} | ||
|
|
||
| '' + optionalString (option ? default) '' | ||
| Default: `${builtins.toJSON option.default}` | ||
|
|
||
| '' + optionalString (option ? example) '' | ||
| Example: `${builtins.toJSON option.example}` | ||
|
||
|
|
||
| '' + '' | ||
| Type: ${option.type} | ||
| ''; | ||
| in | ||
| '' | ||
| - `${name}` | ||
|
|
||
| ${concatMapStrings (line: " ${line}\n") (splitString "\n" body)} | ||
| '' | ||
| ) | ||
| (attrNames options)); | ||
| in | ||
| { | ||
| manual = pkgs.stdenv.mkDerivation { | ||
| name = "manual"; | ||
| phases = [ "unpackPhase" "buildPhase" "installPhase" ]; | ||
| src = ./.; | ||
| nativeBuildInputs = [ pkgs.mdbook ]; | ||
| buildPhase = '' | ||
| cp ${builtins.toFile "options.md" optionsMd} src/options.md | ||
| mdbook build | ||
| ''; | ||
| installPhase = '' | ||
| mkdir $out | ||
| cp -R book $out/book | ||
| cp -R src $out/src | ||
| cp book.toml $out/book.toml | ||
| ''; | ||
| }; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # Summary | ||
|
|
||
| - [Welcome to Robotnix](welcome.md) | ||
danielfullmer marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - [Tutorials]() | ||
| - [Installation](installation.md) | ||
| - [OTA updates](ota.md) | ||
| - [F-Droid repositories](f-droid.md) | ||
| - [Remote attestation](attestation.md) | ||
| - [Reference]() | ||
| - [Options](options.md) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # robotnix - Build Android (AOSP) using Nix | ||
|
|
||
| Robotnix is a build system for Android (AOSP) images on top of the Nix package | ||
| manager. Instead of having to follow complicated instructions to install | ||
| several build tools and fetch source code from multiple sources, robotnix | ||
| encapsulates all this complexity in a simple Nix expression. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want to change this back to
master? Or do you plan to keep documentation on thedocsbranch from now on? Or maybe just use bothmasteranddocs?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I plan to switch it back to
masterafter merging.