Skip to content

Commit

Permalink
Generate html to correct files
Browse files Browse the repository at this point in the history
  • Loading branch information
Westwooo committed Sep 17, 2024
1 parent 59486f6 commit 607e4af
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
id: adocbuild_index
uses: tonynv/asciidoctor-action@master
with:
program: "asciidoctor -D docs -r ./docs/lib/cb-docinfoprocessor.rb -a toc=left -a toclevels=4 -a source-highlighter=coderay -a stylesheet=couchbase.css -a linkcss=true docs/index.adoc"
program: "asciidoctor -D docs -r ./docs/lib/cb-docinfoprocessor.rb -a toc=left -a toclevels=4 -a source-highlighter=coderay -a stylesheet=couchbase.css -a linkcss=true docs/index.adoc -o docs.html"
- name: Build recipes page
id: adocbuild_recipe
uses: tonynv/asciidoctor-action@master
with:
program: "asciidoctor -D docs -r ./docs/lib/cb-docinfoprocessor.rb -a toc=left -a toclevels=4 -a source-highlighter=coderay -a stylesheet=couchbase.css -a linkcss=true docs/recipes.adoc"
program: "asciidoctor -D docs -r ./docs/lib/cb-docinfoprocessor.rb -a toc=left -a toclevels=4 -a source-highlighter=coderay -a stylesheet=couchbase.css docs/recipes.adoc -o recipes/recipes.html"
- name: Print execution time
run: echo "Time ${{ steps.adocbuild.outputs.time }}"
- name: Deploy docs to ghpages
Expand All @@ -28,4 +28,5 @@ jobs:
publish_branch: gh-pages
publish_dir: ./docs
destination_dir: ./docs
exclude_assets: '*.adoc,build.sh,lib/,recipes/'
exclude_assets: '*.adoc,build.sh,lib/,recipes/*.adoc'
keep_files: true
20 changes: 20 additions & 0 deletions docs/couchbase.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
/* Asciidoctor default stylesheet | MIT License | http://asciidoctor.org */
@import "https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700";
#logo-container img {
height: 35px;
margin-top: 15px;
padding-left: 2.7em;
}
nav {
background-color: #fff;
box-shadow: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
position: fixed;
z-index: 999;
}
#nav-mobile {
z-index: 10000;
}
nav ul a {
color: #039be5;
font-weight: bold;
}
article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{
display:block
}
Expand Down

0 comments on commit 607e4af

Please sign in to comment.