Skip to content

Commit

Permalink
Merge pull request #8 from DanRoscigno/docs-as-code
Browse files Browse the repository at this point in the history
add Mermaid support
  • Loading branch information
DanRoscigno authored Apr 18, 2024
2 parents 8104b25 + e70f8cf commit fca94d7
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 5 deletions.
8 changes: 8 additions & 0 deletions antora-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,11 @@ ui:
- path: .nojekyll
urls:
html_extension_style: indexify
antora:
extensions:
- require: '@sntke/antora-mermaid-extension' # <1>
mermaid_library_url: https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs # <2>
script_stem: header-scripts # <3>
mermaid_initialize_options: # <4>
start_on_load: true

2 changes: 1 addition & 1 deletion content/documentation/modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
* xref:index.adoc#_welcome[Welcome!]
* xref:docs-as-code.adoc[]
* xref:docs-as-code.adoc[Docs-As-Code]
39 changes: 36 additions & 3 deletions content/documentation/modules/ROOT/pages/docs-as-code.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
= Docs-As-Code
= Single sourcing documentation code snippets from end to end tests

== Overview
== Two lifecycles for technical documentation

words and links
=== Documenting a feature

[[complaint-driven-pipeline-diagram]]
.Complaint Driven Writing Pipeline
[mermaid]
----
flowchart TD
C[Write Docs]-->
E[Test docs by hand]
E -->G
G{Pass}
G -- yes -->J
G -- no -->C
J[/Publish Docs/] -->
M[/Breaking change/] -->
P[/Receive Complaint/]
--> E
----


[[CI-driven-pipeline-diagram]]
.CI Test Driven Writing Pipeline
[mermaid]
----
flowchart TD
C[/Publish CI Test/]-->
E[Include Test in Docs]-->
J[/Publish Docs/] -->
M[/Breaking change/] -->
P[/CI Fails/] -- Update the tests -->C
C
----
31 changes: 30 additions & 1 deletion content/documentation/modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
= Sample Documentation

April 18th 2024

Hi! This is a WIP. I had never heard of Antora before and decided to give it a whirl.

== Overview

words and links
Documentation at Google.com integrating their on-prem Kubernetes engine with the Elastic Stack. This was published as part of the Anthos launch, and was highlighted at the Elastic Observability conference by Google when they presented in 2021.

Tutorial at the Kubernetes website This was removed from the Kubernetes website when we changed the Elastic license. Webarchive is linked, you can download and open in a browser. Markdown is in this pull request.

== Blogs
Get System Logs and Metrics into Elasticsearch
Upgrading the Elastic Stack: Planning for succes
Integrating JMS with Elasticsearch Service in Elastic Cloud using Logstash
Kubernetes and Docker overview of auto discovery and video demo, and the associated GitHub repo. I think this may be the first thing I wrote at Elastic.
Monitoring an app deplyed in Kubernetes
Logs and Metrics with Beats System Modules
Documentation at third party sites


== Elastic Docs
New Elastic Cloud tutorial built with Cloud tech writers and Cloud PM around using a development language client.

Customer success pages at elastic.co. These pages started out as a text dump of how I approached consulting engagements when I worked in services designing fault and performance management systems for customers. It has grown to become customer journey guides, tips from support, videos from the Elastic education organization, and onboarding advice. There is quite a bit of fluff added in here by the Marketing folks after I left Elastic, but the content written with the Support Engineers and the content around planning upgrades is legit.

== Poster

A poster that I used to teach IBM SAs and customers about using Machine Learning with observability data.




7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@asciidoctor/core": "~2.2",
"@fontsource/roboto": "~4.5",
"@fontsource/roboto-mono": "~4.5",
"@sntke/antora-mermaid-extension": "^0.0.4",
"@vscode/gulp-vinyl-zip": "~2.5",
"autoprefixer": "~9.7",
"browser-pack-flat": "~3.4",
Expand Down

0 comments on commit fca94d7

Please sign in to comment.