Skip to content

Commit

Permalink
1.0.8 fix search in ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
wendevlin committed Apr 29, 2024
1 parent 3a48897 commit 04768dd
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions homedocs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<!-- https://developers.home-assistant.io/docs/add-ons/presentation#keeping-a-changelog -->

## 1.0.8

- Fix search inside ingress

## 1.0.7

- Fix navbar logo to PNG
Expand Down
3 changes: 3 additions & 0 deletions homedocs/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ This addon helps you document stuff around your home inside home assistant in a

The documentation lies in your `config` directory under `homedocs`. When you edit or add/remove the markdown files, your changes will be build after the build timeout and you will see the changes inside the webui.

__Each markdown file needs to have a frontmatter at the beginning of the file.__
Checkout the examples.

#### Use the Studio Code Server addon

I recommend to use the [Studio Code Server](https://github.com/hassio-addons/addon-vscode) to edit your documentation, because it is very convenient to edit markdown files with it and you can just drag and drop files into the addon.
2 changes: 1 addition & 1 deletion homedocs/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Homedocs

Check warning on line 1 in homedocs/config.yaml

View workflow job for this annotation

GitHub Actions / Lint add-on homedocs

'map' contains the 'config' folder, which has been replaced by 'homeassistant_config'. See: https://developers.home-assistant.io/blog/2023/11/06/public-addon-config
description: Document stuff with Markdown based on Astro Starlight
version: "1.0.7"
version: "1.0.8"
slug: homedocs
init: false
url: https://github.com/masterwendu/homeassistant-addons/tree/main/homedocs
Expand Down
3 changes: 2 additions & 1 deletion homedocs/webserver/src/build.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { $, type ShellError } from 'bun'
import environmentVariables from './utils/environmentVariables'

let buildRunning = false
let buildQueued = false
Expand All @@ -16,7 +17,7 @@ export const buildDocs = async () => {
console.time('🚀 build runtime')
try {
console.log('🚀 build started')
await $`cd ../starlight && bun run build`.quiet()
await $`cd ../starlight && bun run build --base ${environmentVariables.ingressEntry}`.quiet()
console.log('🚀 build finished')
await $`rm -rf ./public`
await $`cp -r ../starlight/dist ./public`
Expand Down
2 changes: 1 addition & 1 deletion homedocs/webserver/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const startServer = async (port: number) => {
)
.use(
staticPlugin({
// neccessary to use server outside of ingress too
// neccessary to use search in ingress
prefix: environmentVariables.ingressEntry,
}),
)
Expand Down

0 comments on commit 04768dd

Please sign in to comment.