7 Commits

Author SHA1 Message Date
Charlie Egan b1eb646ddc docs/website: Add formatting and linting checks (#8288)
* Update baseline-browser-mapping to version 2.9.19

Addresses issue in build

[baseline-browser-mapping] The data in this module is over two
months old.  To ensure accurate Baseline data, please update: `npm i
baseline-browser-mapping@latest -D`

Signed-off-by: Charlie Egan <charlie_egan@apple.com>

* Add fmt and lint config for docs

This is based on dprint and eslint. Some vendored paths are ignored.

Signed-off-by: Charlie Egan <charlie_egan@apple.com>

* Format and lint docs project

Markdown linting will be added in another PR.

Signed-off-by: Charlie Egan <charlie_egan@apple.com>

---------

Signed-off-by: Charlie Egan <charlie_egan@apple.com>
2026-02-03 17:01:54 +00:00
Charlie Egan fb8f6c4a4a website: Process feedback form on netlify (#8040)
This new function allows netlify to process the form's notification hook
itself and post to slack without zapier.

Signed-off-by: Charlie Egan <charlie_egan@apple.com>
2025-11-11 11:22:50 +00:00
Charlie Egan 5a6b115e51 website: Fix badge endpoints (#7653)
We have been having some issues with the badge endpoints and have opted
to standardize on the `/badge` as the public API for this feature.

e.g. https://openpolicyagent.org/badge/v1.5.0

Signed-off-by: Charlie Egan <charlie@styra.com>
2025-06-02 10:37:15 +01:00
Charlie Egan 7998b24a80 website: Fix badge endpoint (#7626)
We have callers using /badge and /badge-endpoint

https://github.com/StyraInc/regal/blob/main/README.md?plain=1#L4

https://github.com/StyraInc/enterprise-opa/blob/main/README.md?plain=1#L1C15-L1C100

There are likely others mixing the use so I think we should continue to
support both.

Also use the Host header for redirects, this means we can full test on the deploy previews.

Signed-off-by: Charlie Egan <charlie@styra.com>

---------

Signed-off-by: Charlie Egan <charlie@styra.com>
2025-05-23 09:13:47 +00:00
Charlie Egan 08ee9ae92f docs: Revert badge endpoint to old path
This retains the badge behaviour from the old site and still uses a
function for all badge related requests.

Signed-off-by: Charlie Egan <charlie@styra.com>
2025-05-22 11:06:05 +01:00
Charlie Egan 96f62b3890 docs: Update /badge/ endpoints to use same handler (#7617)
This feature had been based on _redirects and a function. Now we have a
single function to handle all badge requests.

Signed-off-by: Charlie Egan <charlie@styra.com>
2025-05-22 09:28:20 +00:00
Charlie Egan d6b5659856 docs: Switch to new OPA website (#7592)
Some things added on this branch:
- icons and client logos at known paths
- some spam redirects
- some redirects for docs/latest/foo /docs/foo
- redirects for the two ‘moved’ pages (k8s and envoy intros)

I am going to be monitoring the traffic this week on Netlify to make
sure we have a good coverage with redirects where needed.
We also now prompt users to file issues directly from the 404 pages
which should help flag things we miss too.
2025-05-19 10:42:17 +00:00