Skip to content

Commit

Permalink
build: integrate docs into flake and ci
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Hilgers <[email protected]>
  • Loading branch information
fhilgers committed Nov 13, 2024
1 parent e8f0caa commit e2306ab
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 780 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/lint_build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@ jobs:

- name: Lint
run: nix run .#reuseLint

documentation:
name: Build Documentation
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-base

- name: Asciidoctor
run: |
nix develop --command \
asciidoctor -r asciidoctor-diagram Documentation/asciidoc/main.adoc -o index.html
gradle-lint:
name: Gradle Lint
Expand Down Expand Up @@ -75,4 +88,4 @@ jobs:
- uses: ./.github/actions/setup-rust-cache

- name: Build and Test
run: nix run .#rustTest
run: nix run .#rustTest
12 changes: 4 additions & 8 deletions Documentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,12 @@ SPDX-License-Identifier: MIT

# Android - Zero Code Instrumentation Observability

Build, user, and technical documentation Software architecture description
Build, user, and technical documentation Software architecture description.

## Build documentation

Output is written to the `./doc/build` folder. All commands are executed from the project root.
To generate the html documentation run the following:

### HTML

```bash
# ./gradlew asciidoctor
```

The final document `main.html` can be found in `./doc/build/doc`
asciidoctor -r asciidoctor-diagram asciidoctor/main.adoc -o build/doc/index.html
```
458 changes: 0 additions & 458 deletions Documentation/asciidoc/images/header.svg

This file was deleted.

1 change: 1 addition & 0 deletions Documentation/asciidoc/images/header.svg
31 changes: 0 additions & 31 deletions Documentation/build.gradle

This file was deleted.

Binary file removed Documentation/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 0 additions & 5 deletions Documentation/gradle/wrapper/gradle-wrapper.properties

This file was deleted.

185 changes: 0 additions & 185 deletions Documentation/gradlew

This file was deleted.

89 changes: 0 additions & 89 deletions Documentation/gradlew.bat

This file was deleted.

1 change: 0 additions & 1 deletion Documentation/settings.gradle.kts

This file was deleted.

3 changes: 2 additions & 1 deletion REUSE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ SPDX-FileCopyrightText = "2015 the original author or authors"
[[annotations]]
path = [
"Deliverables/**",
"Documentation/**",
]
SPDX-License-Identifier = "CC-BY-4.0"
SPDX-FileCopyrightText = "2024 The AMOS Projects"
Expand All @@ -35,4 +36,4 @@ path = [
"rust/Cargo.lock",
]
SPDX-FileCopyrightText = "NONE"
SPDX-License-Identifier = "CC0-1.0"
SPDX-License-Identifier = "CC0-1.0"
Loading

0 comments on commit e2306ab

Please sign in to comment.