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 1b0701b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 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
26 changes: 20 additions & 6 deletions docs/couchbase.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
/* 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 ul a {
color: #039be5;
font-weight: bold;
}
article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{
display:block
}
Expand Down Expand Up @@ -139,7 +156,6 @@ body{
color:rgba(0,0,0,.8);
padding:0;
margin:0;
font-family:"Noto Serif","DejaVu Serif",serif;
font-weight:400;
font-style:normal;
line-height:1;
Expand Down Expand Up @@ -214,8 +230,7 @@ div,dl,dt,dd,ul,ol,li,h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6,
direction:ltr
}
a{
color:#2156a5;
text-decoration:underline;
color:#2196F3;
line-height:inherit
}
a:hover,a:focus{
Expand Down Expand Up @@ -293,7 +308,6 @@ code{
}
ul,ol,dl{
font-size:1em;
line-height:1.6;
margin-bottom:1.25em;
list-style-position:outside;
font-family:inherit
Expand Down Expand Up @@ -543,7 +557,7 @@ p a>code:hover{
}
#header>h1:first-child{
color:#ED2226;
margin-top:2.25rem;
margin-top:2.1em;
margin-bottom:0
}
#header>h1:first-child+#toc{
Expand Down Expand Up @@ -636,7 +650,7 @@ p a>code:hover{
#toctitle{
font-size:1.375em
}
body.toc2{
body.toc2, div.toc2{
padding-left:15em;
padding-right:0
}
Expand Down
2 changes: 0 additions & 2 deletions docs/index.adoc
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
= Couchbase Shell Documentation =
(c) Copyright 2021, All Rights Reserved

image::couchbase.svg[Couchbase,200]

:sectnums:
:toclevels: 3

Expand Down

0 comments on commit 1b0701b

Please sign in to comment.