core: Tidy contributor onboarding, fix typos. (#12700)

core: Tidy contributor onboarding.

- Fixes typos.
- Fixes stale links.
- Tidies Makefile so that Poetry env is optional for hygiene commands.
- Remove mismatched YAML naming.
- Uses shebang on Python scripts.
- Document semver usage.
- Redirect OpenAPI schema.

Signed-off-by: Teffen Ellis <592134+GirlBossRush@users.noreply.github.com>
This commit is contained in:
Teffen Ellis
2025-03-06 19:34:54 +01:00
committed by GitHub
parent 71344d0b6a
commit cf58c5617a
18 changed files with 113 additions and 87 deletions

2
website/.gitignore vendored
View File

@ -24,5 +24,5 @@ yarn-debug.log*
yarn-error.log*
static/docker-compose.yml
static/schema.yaml
static/schema.yml
docs/developer-docs/api/reference/**

View File

@ -132,7 +132,7 @@ make web # Formats the frontend code
Now that the backend and frontend have been setup and built, you can start authentik by running the following command in the same directory as your local authentik git repository:
```shell
ak server # Starts authentik server
poetry run ak server # Starts authentik server
```
And now, authentik should now be accessible at `http://localhost:9000`.

View File

@ -23,7 +23,7 @@ kubectl exec -it deployment/authentik-worker -c worker -- ak create_recovery_key
or, for CLI, run
```shell
ak create_recovery_key 10 akadmin
poetry run ak create_recovery_key 10 akadmin
```
This will output a link, that can be used to instantly gain access to authentik as the user specified above. The link is valid for amount of years specified above, in this case, 10 years.

View File

@ -152,7 +152,7 @@ const createConfig = (): Config => {
docsPluginId: "docs",
config: {
authentik: {
specPath: "static/schema.yaml",
specPath: "static/schema.yml",
outputDir: "docs/developer-docs/api/reference/",
hideSendButton: true,
sidebarOptions: {

View File

@ -10,7 +10,7 @@ These instructions apply to all projects in the Frappe Family.
## What is Frappe
> Frappe is a full stack, batteries-included, web framework written in Python and Javascript.
> Frappe is a full stack, batteries-included, web framework written in Python and JavaScript.
>
> -- https://frappe.io/

View File

@ -1002,6 +1002,12 @@
status = 302
force = true
[[redirects]]
from = "/schema.yaml"
to = "/schema.yml"
status = 302
force = true
[[redirects]]
from = "/developer-docs/api/api"
to = "/docs/developer-docs/api/api"

View File

@ -4,8 +4,8 @@
"private": true,
"license": "MIT",
"scripts": {
"build": "cp ../docker-compose.yml static/docker-compose.yml && cp ../schema.yml static/schema.yaml && docusaurus gen-api-docs all && cross-env NODE_OPTIONS='--max_old_space_size=65536' docusaurus build",
"build-bundled": "cp ../schema.yml static/schema.yaml && docusaurus gen-api-docs all && cross-env NODE_OPTIONS='--max_old_space_size=65536' docusaurus build",
"build": "cp ../docker-compose.yml static/docker-compose.yml && cp ../schema.yml static/schema.yml && docusaurus gen-api-docs all && cross-env NODE_OPTIONS='--max_old_space_size=65536' docusaurus build",
"build-bundled": "cp ../schema.yml static/schema.yml && docusaurus gen-api-docs all && cross-env NODE_OPTIONS='--max_old_space_size=65536' docusaurus build",
"deploy": "docusaurus deploy",
"docusaurus": "docusaurus",
"lint:lockfile": "wireit",

View File

@ -124,7 +124,7 @@ fn replace_links(migrate_path: PathBuf, moves: Vec<(PathBuf, PathBuf)>) {
r#move.1.display(),
tmp_file
));
// delete file if it didnt already exist
// delete file if it didn't already exist
if let Ok(_) = tmp_file {
let _ = remove_file(&r#move.1);
};
@ -223,7 +223,7 @@ fn replace_links(migrate_path: PathBuf, moves: Vec<(PathBuf, PathBuf)>) {
);
continue;
};
// delete file if it didnt already exist
// delete file if it didn't already exist
//if let Ok(_) = tmp_file {
// let _ = remove_file(&absolute_link);
//};
@ -275,7 +275,7 @@ fn replace_links(migrate_path: PathBuf, moves: Vec<(PathBuf, PathBuf)>) {
.collect::<PathBuf>();
let new_link = escapes.join(tmp_absolute_link.iter().collect::<PathBuf>());
// add a . to the begining if it doesnt already start with . or ..
// add a . to the beginning if it doesn't already start with . or ..
let new_link = match new_link
.components()
.collect::<Vec<_>>()