Skip to content

Commit 885c643

Browse files
tombentleyPaulRMellork-wall
authored
Rearrange docs/ to support multiple guides (kroxylicious#1921)
Follow the pattern used by Strimzi. Signed-off-by: Tom Bentley <tbentley@redhat.com> Co-authored-by: PaulRMellor <47596553+PaulRMellor@users.noreply.github.com> Co-authored-by: Keith Wall <kwall@redhat.com>
1 parent 34aca8a commit 885c643

File tree

12 files changed

+29
-22
lines changed

12 files changed

+29
-22
lines changed

.github/workflows/asciidoctor-ghpages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ jobs:
3737
- name: asciidoctor-ghpages
3838
uses: manoelcampos/asciidoctor-ghpages-action@v2
3939
with:
40-
source_dir: docs/
40+
source_dir: docs/kroxylicous-proxy
4141
asciidoctor_params: "--require asciidoctor-diagram --attribute=sectlinks --attribute=sectanchors"
4242
post_build: 'find . -name "*.svg" -exec git add -f {} \;'

docs/README.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,35 +19,38 @@ US (global) English is used throughout.
1919

2020
## Kroxylicious guide
2121

22-
The Kroxylicious documentation is organized into a single **Kroxylicious** guide.
23-
The content for the guide is encapsulated in a main index file:
22+
The Kroxylicious documentation is organized into specific **Kroxylicious** guides.
2423

25-
- [Index file](index.adoc)
24+
The content for the guide to the proxy is encapsulated in a main index file:
25+
26+
- [kroxylicious-proxy.adoc](kroxylicious-proxy/kroxylicious-proxy.adoc)
2627

2728
## Documentation folder structure
2829

2930
The index file is used to build the documentation.
3031
Documentation folders contain the content that's incorporated into the main source files.
3132
An assembly is like a sub-section or chapter in a book.
32-
A module contain a procedure (`proc-`), concepts (`con-`), or reference (`ref-`) content.
33+
A module contains a procedure (`proc-`), concepts (`con-`), or reference (`ref-`) content.
3334

3435
**Documentation folders**
35-
| Folder | Description |
36-
| -------------- | ------------------------------------------------- |
37-
| `assemblies/` | Assemblies (chapters) group related content |
38-
| `modules/` | Modules provide content for assemblies |
39-
| `_assets/` | Content common to all doc files |
40-
| `shared/attributes.adoc` | Global book attributes |
36+
37+
| Folder | Description |
38+
|--------------------------|---------------------------------------------|
39+
| `assemblies/` | Assemblies (chapters) group related content |
40+
| `modules/` | Modules provide content for assemblies |
41+
| `_assets/` | Content common to all doc files |
42+
| `shared/attributes.adoc` | Global book attributes |
43+
| `kroxylicious-proxy/` | The Kroxylicious Proxy guide |
4144

4245
## Generating the guide
4346

4447
To generate the guide in HTML, run the following Maven command:
4548

4649
```shell
47-
mvn org.asciidoctor:asciidoctor-maven-plugin:process-asciidoc@convert-to-html
50+
mvn org.asciidoctor:asciidoctor-maven-plugin:process-asciidoc@convert-kroxylicious-proxy-to-html
4851
```
4952

50-
The HTML is output to `target/html/index.html`.
53+
The HTML is output to `target/kroxylicious-proxy/html/index.html`.
5154

5255
## Contributing to the documentation
5356

docs/assemblies/assembly-built-in-filters.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// file included in the following:
22
//
3-
// index.adoc
3+
// kroxylicious-proxy.adoc
44

55
[id='assembly-built-in-filters-{context}']
66
= Built-in filters

docs/assemblies/assembly-monitoring-proxy.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// file included in the following:
22
//
3-
// index.adoc
3+
// kroxylicious-proxy.adoc
44

55
[id='con-operating-{context}']
66
= Monitoring proxies

docs/assemblies/assembly-overview.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// file included in the following:
22
//
3-
// index.adoc
3+
// kroxylicious-proxy.adoc
44

55
[id='assembly-overview-{context}']
66
= Kroxylicious overview

docs/kroxylicious-proxy/_assets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../_assets

docs/kroxylicious-proxy/assemblies

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../assemblies

docs/index.adoc renamed to docs/kroxylicious-proxy/kroxylicious-proxy.adoc

File renamed without changes.

docs/kroxylicious-proxy/modules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../modules

docs/modules/con-community-filters.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// file included in the following:
22
//
3-
// index.adoc
3+
// kroxylicious-proxy.adoc
44

55
[id='con-community-filters-{context}']
66
= Community filters

0 commit comments

Comments
 (0)