
* root: Makefile: copy over schema for website-watch `make website-watch` will fail with the following error if the schema.yml file is not present in the website's static directory. This was tested on a branch up to date with main with the schema file I copied over removed. ``` ➜ authentik git:(sdko/integrations-all/migr-to-wizard) ✗ w cd website && npm run watch > @goauthentik/website-docs@0.0.0 watch > docusaurus gen-api-docs all && docusaurus start (node:102678) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. (Use `node --trace-deprecation ...` to show where the warning was created) Loading of api failed for "/home/d/Code/authentik/website/static/schema.yml" [ERROR] [Error: ENOENT: no such file or directory, lstat '/home/d/Code/authentik/website/static/schema.yml'] { errno: -2, code: 'ENOENT', syscall: 'lstat', path: '/home/d/Code/authentik/website/static/schema.yml' } [INFO] Docusaurus version: 3.7.0 Node version: v23.6.1 make: *** [Makefile:233: website-watch] Error 1 ``` We should copy over the schema each time in case it changes. Adding it to this Makefile instruction as [official docs](https://docs.goauthentik.io/docs/developer-docs/setup/website-dev-environment) tell users to run `make website-install` which simply `npm ci`s, then this... Signed-off-by: Dominic R <dominic@sdko.org> * tabs? Signed-off-by: Dominic R <dominic@sdko.org> * Update Makefile Signed-off-by: Dominic R <dominic@sdko.org> * Update package.json Signed-off-by: Dominic R <dominic@sdko.org> * Update package.json Signed-off-by: Dominic R <dominic@sdko.org> --------- Signed-off-by: Dominic R <dominic@sdko.org>
Website
This website is built using Docusaurus 2, a modern static website generator.
Installation
npm ci
Local Development
npm run watch
This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.
Build
npm run build
This command generates static content into the build
directory and can be served using any static contents hosting service.