Skip to content

Commit

Permalink
Bump Obs Guide chunk level (#3045)
Browse files Browse the repository at this point in the history
* Bump Obs Guide chunk level

* handle h7s

---------

Co-authored-by: Colleen McGinnis <[email protected]>
  • Loading branch information
dedemorton and colleenmcginnis authored Aug 19, 2024
1 parent 821dfbf commit a11258b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ contents:
branches: [ {main: master}, 8.15, 8.14, 8.13, 8.12, 8.11, 8.10, 8.9, 8.8, 8.7, 8.6, 8.5, 8.4, 8.3, 8.2, 8.1, 8.0, 7.17, 7.16, 7.15, 7.14, 7.13, 7.12, 7.11, 7.10, 7.9 ]
live: *stacklive
index: docs/en/observability/index.asciidoc
chunk: 3
chunk: 4
tags: Observability/Guide
subject: Observability
sources:
Expand Down
2 changes: 1 addition & 1 deletion doc_build_aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ alias docbldeesr='$GIT_HOME/docs/build_docs --doc $GIT_HOME/enterprise-search-ru
alias docbldewsn='$GIT_HOME/docs/build_docs --doc $GIT_HOME/enterprise-search-pubs/client-docs/workplace-search-node/index.asciidoc --single'

# Observability Guide 8.8 and later
alias docbldob='$GIT_HOME/docs/build_docs --doc $GIT_HOME/observability-docs/docs/en/observability/index.asciidoc --chunk 3 --resource $GIT_HOME/apm-server --resource=$GIT_HOME/ingest-docs/docs'
alias docbldob='$GIT_HOME/docs/build_docs --doc $GIT_HOME/observability-docs/docs/en/observability/index.asciidoc --chunk 4 --resource $GIT_HOME/apm-server --resource=$GIT_HOME/ingest-docs/docs'

# Observability Guide 8.7 and earlier
alias docbldobold='$GIT_HOME/docs/build_docs --doc $GIT_HOME/observability-docs/docs/en/observability/index.asciidoc --chunk 2 --resource $GIT_HOME/beats/libbeat/docs --resource $GIT_HOME/apm-server/docs/guide --resource=$GIT_HOME/ingest-docs/docs'
Expand Down
2 changes: 1 addition & 1 deletion resources/web/docs_js/index-v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ $(function() {
AlternativeSwitcher(store());

// Get all headings inside the main body of the doc
const allHeadings = $('div#content').find('h1,h2,h3,h4,h5,h6')
const allHeadings = $('div#content').find('h1,h2,h3,h4,h5,h6,h7')
let allLevels = []
// Create a list of all heading levels used on the page
allHeadings.each(function(index) {
Expand Down
5 changes: 5 additions & 0 deletions resources/web/style/heading.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
margin: 16px 0 5px;
}

/** I _think_ h7 is not technically valid HTML tag, but in the event that the nesting is deep enough we can at least bold the text */
h7 {
font-weight: 600;
}

/* Points folks to "edit" pages in github so they can contribute
* to the docs! */
.edit_me {
Expand Down

0 comments on commit a11258b

Please sign in to comment.