Skip to content

Commit 48c31a5

Browse files
committed
Merge branch 'develop' of colinwilson.github.com:colinwilson/lotusdocs.dev into develop
2 parents e1b610f + fd11b57 commit 48c31a5

File tree

13 files changed

+49
-47
lines changed

13 files changed

+49
-47
lines changed

.github/workflows/deploy-preview.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ jobs:
5959
run: hugo --logLevel info -D -e staging
6060
env:
6161
# HUGO_PARAMS_DOCSEARCH_indexName: ${{ secrets.ALGOLIA_INDEX_NAME }}
62-
HUGO_PARAMS_DOCSEARCH_appID: ${{ vars.DOCSEARCH_APPID }}
63-
HUGO_PARAMS_DOCSEARCH_apiKey: ${{ vars.DOCSEARCH_APIKEY }}
64-
HUGO_PARAMS_DOCSEARCH_indexName: ${{ vars.DOCSEARCH_INDEXNAME }}
62+
HUGO_PARAMS_DOCSEARCH_appID: ${{ secrets.DOCSEARCH_APP_ID }}
63+
HUGO_PARAMS_DOCSEARCH_apiKey: ${{ secrets.DOCSEARCH_PUBLIC_API_KEY }}
64+
HUGO_PARAMS_DOCSEARCH_indexName: ${{ secrets.DOCSEARCH_INDEXNAME }}
6565
HUGO_PARAMS_PLAUSIBLE_dataDomain: ${{ secrets.PLAUSIBLE_DOMAIN }}
6666
HUGO_GOOGLEANALYTICS: ${{ vars.HUGO_GOOGLEANALYTICS }}
6767

@@ -82,6 +82,8 @@ jobs:
8282
lotusdocs-staging.vercel.app
8383
8484
docsearch-scrape:
85+
# The environment this job references
86+
environment: Preview
8587

8688
# The type of runner that the job will run on
8789
runs-on: ubuntu-20.04
@@ -107,6 +109,6 @@ jobs:
107109
id: docsearch-scrape
108110
uses: adapttive/algolia-docsearch-action@1.1.1
109111
env:
110-
APPLICATION_ID: ${{ secrets.DOCSEARCH_APP_ID_PREVIEW }}
111-
API_KEY: ${{ secrets.DOCSEARCH_WRITE_API_KEY_PREVIEW }}
112+
APPLICATION_ID: ${{ secrets.DOCSEARCH_APP_ID }}
113+
API_KEY: ${{ secrets.DOCSEARCH_WRITE_API_KEY }}
112114
CONFIG: ${{ steps.docsearch-config.outputs.config }}

.github/workflows/deploy-production.yaml

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1313
jobs:
14-
# This workflow contains two jobs called "deploy-production" and "docsearch-scrape"
14+
# This workflow contains two jobs called "deploy-production" and "docsearch-crawl"
1515
deploy-production:
1616
# The environment this job references
1717
environment:
@@ -78,32 +78,30 @@ jobs:
7878
vercel-args: "--prod --local-config ../vercel.json" #Optional
7979
working-directory: public
8080

81-
# docsearch-scrape:
82-
83-
# # The type of runner that the job will run on
84-
# runs-on: ubuntu-20.04
85-
# needs: [deploy-production]
86-
# # Run job only if there are changes to 'content/docs/**' or 'docsearch-prod.json'
87-
# if: |
88-
# needs.deploy-production.outputs.docs == 'true' ||
89-
# needs.deploy-production.outputs.docsearch_config == 'true'
81+
docsearch-crawl:
82+
# The environment this job references
83+
environment: Production
9084

91-
# steps:
92-
# # Step 1 - Checks-out your repository under $GITHUB_WORKSPACE
93-
# - name: Checkout
94-
# uses: actions/checkout@v3
85+
# The type of runner that the job will run on
86+
runs-on: ubuntu-20.04
87+
needs: [deploy-production]
88+
# Run job only if there are changes to 'content/docs/**'
89+
if: |
90+
needs.deploy-production.outputs.docs == 'true'
9591
96-
# # Step 2 - Format and output DocSearch config
97-
# - name: Output formatted docsearch-*.json as config
98-
# id: docsearch-config
99-
# # run: echo "::set-output name=config::$(cat docsearch-preview.json | jq -r tostring)"
100-
# run: echo "config=$(cat docsearch-prod.json | jq -r tostring)" >> $GITHUB_OUTPUT
92+
steps:
93+
# Step 1 - Checks-out your repository under $GITHUB_WORKSPACE
94+
- name: Checkout
95+
uses: actions/checkout@v3
10196

102-
# # Step 3 - Update DocSearch Index only if content files were changed
103-
# - name: Algolia DocSearch Crawl & Index
104-
# id: docsearch-scrape
105-
# uses: adapttive/algolia-docsearch-action@1.1.1
106-
# env:
107-
# APPLICATION_ID: ${{ secrets.DOCSEARCH_APP_ID_PROD }}
108-
# API_KEY: ${{ secrets.DOCSEARCH_WRITE_API_KEY_PROD }}
109-
# CONFIG: ${{ steps.docsearch-config.outputs.config }}
97+
# Step 2 - Perform DocSearch crawl and reindex of the site contents
98+
- name: Algolia crawl and reindex
99+
uses: algolia/algoliasearch-crawler-github-actions@v1.1.13
100+
id: docsearch-crawl
101+
with:
102+
crawler-user-id: ${{ secrets.CRAWLER_USER_ID }}
103+
crawler-name: 'lotusdev'
104+
crawler-api-key: ${{ secrets.CRAWLER_API_KEY }}
105+
algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }}
106+
algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }}
107+
site-url: 'https://lotusdocs.dev/'

content/docs/deployment/platforms/github-pages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ GitHub provides free and fast static hosting over SSL for personal, organization
2121

2222
## Procedure
2323

24-
Use the following steps to get your Lotus Docs site up and running on GitHub Pages.
24+
Use the following steps to get your Lotus Docs themed site up and running on GitHub Pages.
2525

2626
1. Create a new repo on GitHub e.g. `https://github.com/colinwilson/colinwilson.github.io`
2727

content/docs/deployment/platforms/gitlab-pages.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ toc: true
1111

1212
## Overview
1313

14-
With [GitLab Pages](https://docs.gitlab.com/ee/user/project/pages/), you can publish your Lotus Docs site directly from a repository in GitLab.
14+
With [GitLab Pages](https://docs.gitlab.com/ee/user/project/pages/), you can publish your Lotus Docs themed site directly from a repository in GitLab.
1515

1616
- Use for any personal or business website.
1717
- Native support for Hugo.
@@ -20,7 +20,7 @@ With [GitLab Pages](https://docs.gitlab.com/ee/user/project/pages/), you can pub
2020
- Connect your custom domains and TLS certificates.
2121
- Attribute any license to your content.
2222

23-
GitLab makes it easy to build, deploy, and host your Lotus Docs website via their free GitLab Pages service.
23+
GitLab Pages makes it easy to build, deploy, and host your Lotus Docs website.
2424

2525
## Prerequisites
2626

content/docs/features/feedback-widget.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ draft: false
1111
images: []
1212
---
1313

14-
The Lotus Docs feedback plugin integrates with Google or Plausible Analytics to allow you to collect visitor feedback on your sites' content.
14+
The Lotus Docs feedback plugin integrates with Google or Plausible Analytics allowing you to collect visitor feedback on your sites' content.
1515

1616
![Lotus Docs Emoticon Feedback Widget Screenshot](https://res.cloudinary.com/lotuslabs/image/upload/r_20,c_scale,w_800/v1692841008/Lotus%20Docs/images/lotusdocs_emoticon_feedback_widget_screenshot_rd_v2_mmoxca.webp)
1717
{.text-center}

content/docs/features/google-analytics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ images: []
1313

1414
Lotus Docs utilises Hugo's internal [Google Analytics v4](https://support.google.com/analytics/#topic=9143232) template[^1].
1515

16-
{{< alert context="info" text="Starting **July 1, 2023**, Universal Analytics (UA) was **deprecated** and is [no longer processed](https://support.google.com/analytics/answer/11583528) by Google. Lotus Docs does not include support for UA." />}}
16+
{{< alert context="info" text="As of **July 1, 2023**, UA (Universal Analytics) was **deprecated**, and is [no longer processed](https://support.google.com/analytics/answer/11583528) by Google. Lotus Docs does **not** support UA." />}}
1717

1818
## Enabling Google Analytics
1919

content/docs/features/plausible-analytics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ images: []
1313

1414
[Plausible Analytics](https://plausible.io "Plausible Analytics Website") is a simple, open source, lightweight (< 1 KB), privacy-focused alternative to Google Analytics. Plausible is completely independent, self-funded and bootstrapped. Read more about [Plausible Analytics](https://plausible.io/about).
1515

16-
![Plausible Analytics Dashboard Screenshot](https://res.cloudinary.com/lotuslabs/image/upload/v1673015990/Lotus%20Docs/Social%20Media/plausible-analytics-screenshot_ds_rdd_c6bi3o.webp)
16+
![Plausible Analytics Dashboard Screenshot](https://res.cloudinary.com/lotuslabs/image/upload/v1738081372/Lotus%20Docs/images/privacy-focused-web-analytics_mec9kp.webp)
1717

1818
## Why use Plausible Analytics?
1919

content/docs/features/syntax-highlighting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ images: []
1313

1414
## Code Highlighters
1515

16-
Lotus Docs supports syntax highlighting by [Prism](https://prismjs.com/) (enabled by default via `param.docs.prism` in `hugo.toml`) or Hugo's built-in code highlighter [Chroma](https://github.com/alecthomas/chroma).
16+
Lotus Docs supports syntax highlighting using [Prism](https://prismjs.com/) (enabled by default via `param.docs.prism` in `hugo.toml`) or Hugo's built-in code highlighter [Chroma](https://github.com/alecthomas/chroma).
1717

18-
Fenced code blocks (code enclosed by triple backticks above and below) that specify a code language (declared right of the opening fence), will automatically highlight the code content as HTML e.g. ` ```html `:
18+
Fenced code blocks (code enclosed between triple backticks above and below) that specify a code language (declared right of the opening fence), will automatically highlight the code content as HTML e.g. ` ```html `:
1919

2020
````md
2121
```html

content/docs/quickstart.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ hugo new docs/examplepage.md
231231

232232
## Preview your Site
233233

234-
Now that you've created some sample content you can preview your new Lotus Docs site using the `huge server` command:
234+
Now that you've created some sample content you can preview your new Lotus Docs site using the `hugo server` command:
235235

236236
```shell
237237
hugo server -D
@@ -309,4 +309,4 @@ content/
309309

310310
This is reflected in the sidebar menu with `parent-directory` functioning as a dropdown menu containing a link to the **Doc Three** post:
311311

312-
![sidebar parent menu example](https://res.cloudinary.com/lotuslabs/image/upload/v1684802032/Lotus%20Docs/images/sidebar_menu_example_02_jsecye.webp)
312+
![sidebar parent menu example](https://res.cloudinary.com/lotuslabs/image/upload/v1684802032/Lotus%20Docs/images/sidebar_menu_example_02_jsecye.webp)

content/docs/reference/configuration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ Social links are displayed as icons in the top left corner of the Lotus Docs the
4747
| Parameter | Type | Default Value | Description |
4848
|---------|-----|-----|------|
4949
| `github` | string | N/A | Enables the GitHub social icon link using the GitHub URL value set here e.g. `colinwilson` or `colinwilson/lotusdocs` |
50+
| `bluesky` | string | N/A | Enables the Bluesky social icon link using the username value set here e.g. `lotusdocs.bsky.social` |
5051
| `twitter` | string | N/A | Enables the Twitter / X social icon link using the username value set here e.g. `lotusdocs` |
5152
| `instagram` | string | N/A | Enables the Instagram social icon link using the username value set here e.g. `lotusdocs` |
5253
| `rss` | boolean | `false` | Display an RSS icon link? |

0 commit comments

Comments
 (0)