Skip to content

Commit

Permalink
Update workflow to build recipes page
Browse files Browse the repository at this point in the history
  • Loading branch information
Westwooo committed Sep 2, 2024
1 parent 93813f9 commit d1bc805
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 2,143 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get build container
id: adocbuild
- name: Build index page
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"
- 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"
- name: Print execution time
run: echo "Time ${{ steps.adocbuild.outputs.time }}"
- name: Deploy docs to ghpages
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion docs/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ include::commands.adoc[]

include::reference.adoc[]

include::recipes.adoc[]
include::importing-data.adoc[]

include::exporting-data.adoc[]

include::release_notes.adoc[]
2,131 changes: 0 additions & 2,131 deletions docs/index.html

This file was deleted.

11 changes: 6 additions & 5 deletions docs/recipes.adoc
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
== Recipes
= Recipes

include::recipes/importing-data.adoc[]
:sectnums:

include::recipes/exporting-data.adoc[]
Welcome to the recipes section of the Couchbase Shell `cbsh` documentation.
Here you can find some examples of the more complicated tasks that can be performed using `cbsh`.

include::recipes/useful-snippets.adoc[]
include::recipes/similarity_search.adoc[]

include::recipes/similarity_search.adoc[]
include::recipes/useful-snippets.adoc[]
2 changes: 1 addition & 1 deletion docs/recipes/similarity_search.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
=== Similarity Search
== Similarity Search

The <<_vector_commands, vector commands>> can be used to enrich your existing data and allow you to experiment with the value that similarity search can add.
Before you can follow this recipe you'll need to <<_cb_env_llm,configure a llm>> for use with the shell.
Expand Down
6 changes: 3 additions & 3 deletions docs/recipes/useful-snippets.adoc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
=== Useful snippets
== Useful snippets

This section contains a collection of useful commands and sets of commands which don't really fit into their own section of recipes.

==== Migrating scope and collection definitions
=== Migrating scope and collection definitions

When you create a new cluster it can be useful to migrate scope and collection definitions from an old cluster.
A good example here is migrating from an on-premise cluster to a Capella cluster.
Expand All @@ -22,7 +22,7 @@ collections --clusters "On-Prem-Cluster" --bucket "travel-sample" | select scope
These examples can easily be extended to filter out any other scopes and collections you do not want to migrate.
For example to filter more scopes you would just add more `where` clauses: `... | where scope != "_default" | where scope != "inventory" | ...`

==== Migrating query index definitions
=== Migrating query index definitions

When you create a new cluster it can be useful to migrate index definitions from an old cluster.
A good example here is migrating from an on-premise cluster to a Capella cluster.
Expand Down

0 comments on commit d1bc805

Please sign in to comment.