Skip to content

Commit

Permalink
Merge pull request #319 from nikcio/feature/link-validator-to-docs
Browse files Browse the repository at this point in the history
docs: Link validator for docs
  • Loading branch information
nikcio authored Jun 9, 2024
2 parents ce02300 + a31bb59 commit 94637f3
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 3 deletions.
6 changes: 5 additions & 1 deletion docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightLinksValidator from 'starlight-links-validator'

// https://astro.build/config
export default defineConfig({
site: 'https://nikcio.github.io',
base: '/Nikcio.UHeadless',
base: '/Nikcio.UHeadless/',
integrations: [
starlight({
title: 'Nikcio.UHeadless',
Expand All @@ -14,6 +15,9 @@ export default defineConfig({
editLink: {
baseUrl: 'https:/nikcio/Nikcio.UHeadless/tree/'
},
plugins: [starlightLinksValidator({
errorOnRelativeLinks: false,
})],
sidebar: [
{
label: 'Welcome',
Expand Down
3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"dependencies": {
"@astrojs/starlight": "^0.24.0",
"astro": "^4.10.1",
"sharp": "^0.33.3"
"sharp": "^0.33.3",
"starlight-links-validator": "^0.9.0"
}
}
32 changes: 32 additions & 0 deletions docs/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dotnet add NAME_OF_PACKAGE
## Register the queries, mutations or subscriptions
If the extending package includes new queries you need to register these in the `startup.cs`. This can be done like this:

```CSharp
```csharp
public void ConfigureServices(IServiceCollection services) {
services.AddUmbraco(_env, _config)
.AddBackOffice()
Expand Down
Binary file modified examples/code-examples/umbraco/Data/code-examples.sqlite
Binary file not shown.

0 comments on commit 94637f3

Please sign in to comment.