34 Commits

Author SHA1 Message Date
Charlie Egan efae5d1b58 Update a number of links to their new location (#8100)
* Update a number of links to their new location

https://github.com/open-policy-agent/opa/issues/8091 highlighted a
number of 'broken' links that are just redirects. I have updated many of
these in this PR.

Hopefully next time, the broken link report will be easier to parse.

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

* Update docs/docs/policy-performance.md

Co-authored-by: Stephan Renatus <s_renatus@apple.com>
Signed-off-by: Charlie Egan <git@charlieegan3.com>

---------

Signed-off-by: Charlie Egan <charlie_egan@apple.com>
Signed-off-by: Charlie Egan <git@charlieegan3.com>
Co-authored-by: Stephan Renatus <s_renatus@apple.com>
2025-12-02 11:06:38 +00:00
Charlie Egan cd96d88272 docs: Update contrib-docs page (#7614)
Some of these details have changed with the arrival of the new site.

Signed-off-by: Charlie Egan <charlie@styra.com>
2025-05-22 08:59:00 +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
Ashutosh Narkar 9a7d920494 Update docs and server binding addr per OPA v1.0 specs (#7140)
This changes updates the docs and all the policy examples in them to
be OPA v1.0-compliant. It also binds the OPA server to `localhost`
interface by default per OPA v1.0 specs.

Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
Co-authored-by: Charlie Egan <charlie@styra.com>
2024-12-19 12:25:47 +01:00
Johan Fylling b9398bf1ac docs: Updating Rego examples in docs to be 1.0 compliant (#6444)
* Updating Rego examples in docs to be 1.0 compliant

Signed-off-by: Johan Fylling <johan.dev@fylling.se>
2023-12-15 13:51:49 +01:00
Charlie Egan 9bf54788f5 [docs] Move OPA ecosystem pages to site top-level (#6198)
* We are having trouble managing the complexity of having ecosystem pages shown in the versioned area of the OPA docs site (see website: link ecosystem from edge #6170)
* We have invested in the OPA ecosystem data recently and it makes sense to make it more prominent.
* The data in the OPA Ecosystem is harder to use when nested in docs as some Hugo functions are unavailable to nested sections.

This PR implements a solution by:

* Pages that were under /docs/version/ecosystem, /docs/version/integrations etc have been moved to /ecosystem and /integrations.
* Redirects have been created for the old pages in the netlify config.

Signed-off-by: Charlie Egan <charlie@styra.com>
2023-08-31 09:36:51 +01:00
Charlie Egan de896d96f5 [docs] Update note on site updates
This explains how different parts of the site are versioned.

Signed-off-by: Charlie Egan <charlieegan3@users.noreply.github.com>
2023-08-21 10:48:09 -07:00
Charlie Egan 1e4f120beb [docs] Update integrations, organisations and softwares to have pages (#6158)
This PR makes it possible to browse integrations, organizations and related softwares. Previously, these details were only available as modals on the ecosystem page.

There are also some changes to the policy enforcement on the docs content, the validation rules are much the same but have been updated to reflect that the content is stored in a new place. I have used some generated JSON in Hugo rather than using GitHub api requests to validate the files since it's A) faster, B) I think more simple, and C) easier to get Hugo to process the markdown frontmatter.

Much of the hackery in this PR (Hugo function partials to look up sets of files and get the data from them) is due to the fact that we can't use Hugo's native sections feature. All of our content is nested under docs, this means that all our pages are in the same section so custom lookups have been implemented as function partials instead to work around this.

Signed-off-by: Charlie Egan <charlie@styra.com>
2023-08-17 16:09:33 +01:00
lakhan jindam 856d1576de docs/website: reorganize pages from misc section
Misc section consists of lots of pages and contents needs to be placed
under right section. Moved pages from misc to its appropriate section,
renamed few pages titles, added disk storage reference in under resource
utilization section, created new section support and moved faq,
enterprise and ecosystem pages.

Fixes: #4614

Signed-off-by: lakhan jindam <lakhanj569@gmail.com>
2023-04-14 14:22:53 -07:00
Omri Gazitt d8809eca12 docs/README.md: add note about Hugo version mismatch errors (#4453)
Signed-off-by: Omri Gazitt <ogazitt@gmail.com>
2022-03-18 21:36:53 +01:00
Stephan Renatus d4361e17d0 docs/ecosystem: allow for svg logos
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
2022-03-15 19:35:20 +01:00
Peter ONeill d7c17d167a docs: Include Google Analytic Instructions in Readme (#4375)
This adds brief instructions to the docs readme file to show how to check google analytics.

Signed-off-by: Peter ONeill <peteroneilljr@gmail.com>
2022-02-23 07:38:39 +01:00
Peter Helewski d98015270e fixing broken links in the online documentation (#4224)
Signed-off-by: Peter Helewski <phelewski@gmail.com>
2022-01-14 15:54:29 +01:00
Johan Fylling 76547e55d1 topdown: Add built-in HMAC functions (#4100)
Add crypto.hmac.* built-in functions for the MD5, SHA-1, SHA-256 and SHA-512 hashing algorithms.

Add documentation for how to contribute new built-in functions.

Fixes: #1740
Signed-off-by: Johan Fylling <johan.dev@fylling.se>
2021-12-09 13:48:17 +01:00
Stephan Renatus 27d658c53a website: link to same page (if possible) from version picker (#3390)
This might not be the most efficient or idiomatic way to do it, but
I think it works.

Doesn't do in-page anchors, so selecting a different version when on
page /docs/v0.26.0/policy-performance/#benchmarking-queries will get
you to /docs/<other>/policy-performance/ only.

Fixes #3023 to some extend. A little less annoying now, I hope.

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
2021-04-16 15:53:57 +02:00
Rounak Agarwal 931a97ad31 docs: Update link to netlify.toml in README.md
Signed-off-by: Rounak Agarwal <rounakr.ag73@gmail.com>
2020-05-19 06:38:52 -04:00
Patrick East 1ebe25dd2f docs: Update dev instructions and make targets
This updates the Makefile targets to remove the hugo-only options for
development, as well as clarifying/simplifying the requirements for
a dev environment. There are now really two options: just look at the
markdown preview with your editor/ide, or install the tools locally
and deploy the full site.

We can likely improve the dev experience some more (would be nice to
get back to the live content updating dev experience) but for now this
should help remove some confusion about how to build and run the site.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2020-03-26 07:39:36 -07:00
Patrick East 0ed978c688 docs: Build html content from integrations.yaml
This adds in a the HTML view for the integrations.yaml and by having
hugo generate content at build time. It ends up being at the
`/docs/<version/ecosystem` url and there are links to it on the home
page, introduction page, and nav bar under the Misc category.

In future iterations we can add in sorting/filtering etc. It currently
just shows all of them.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-11-08 15:56:01 -08:00
Patrick East 04c711fc01 docs: Remove non-useful linkcheck target
The `linkcheck` target has been broken since we added in the "latest"
URL stuff and started using netlify redirects all over.

Add documentation for using a different tool that crawls the live
preview deployemnt.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-10 09:58:50 -07:00
David Boles 9618e9d35a live-blocks: Added an include(<group name>) tag.
Signed-off-by: David Boles <me@davidbol.es>
2019-08-29 09:28:45 -07:00
David Boles da95397588 docs: Minor live blocks fixes and improvements.
Allow "open" button for read_only blocks.

Remove erroneous CSS.

Added a tag for showing line numbers.

Signed-off-by: David Boles <me@davidbol.es>
2019-08-23 17:43:25 -07:00
David Boles 91d98c7205 docs: Add live-editable code blocks to the docs.
This commit adds a postprocessor to the docs build that enables
examples to be edited and have the results show up live. See the
additions to `docs/README.md` for more about what writing these
blocks looks like or the netlify PR preview
(e.g. at `docs/edge/how-do-i-write-policies/`)
to see them in action (you'll need to disable CORS for live output).

Signed-off-by: David Boles <me@davidbol.es>
2019-08-21 10:12:49 -07:00
Patrick East 994997479f Remove "RELEASES" file from docs/website build
We were using a file with hard coded versions to display docs for, but
this complicates things if/when we need to do patch releases on
different branches from master.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-06-13 11:31:58 -07:00
Patrick East 758bb95ca3 Update docs dev readme and netlify dev configuration
There are a few drawbacks to different dev approaches with modifying
and testing the website and docs content. This updates the makefile
to include a handful of options and info about when to use them.

This also changes to not use a “live” Hugo service behind netlify when
we run it locally in dev mode. This allows for the local netlify
preview to more accurately reflect the “real” build.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-05-03 13:27:17 -06:00
Patrick East 58d336aff9 Refactor doc directories
Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-04-26 17:12:15 -07:00
Patrick East 5b7fb411a3 Get local netlify dev environment working
We needed to change to build the docs from the root of the git repo
Where the netlify toml file was. To make this easier we just shim the
docs-* make targets to the ./docs/Makefile.

The nice part of this is we get a full deployment with the redirects
and other netlify config bits in place.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-04-26 17:12:15 -07:00
Patrick East 2483b6dd2e Remove “local” and “production” doc builds..
..There can be only one.

The groundwork was laid in previous patches but this finishes the
process of removing the local/dev/preview builds. We now only have
a single doc build that will show *all* content.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-04-26 17:12:15 -07:00
Patrick East a592d2ff72 Update readme for local Hugo docs in docker
There was a typo on the makefile target and an additional required step to get things working.

Fixes: #1348
Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-04-17 13:51:33 -07:00
lucperkins 87179879d7 Update preview build to show latest instead of all versions
Signed-off-by: lucperkins <lucperkins@gmail.com>
2019-04-06 12:35:11 -07:00
lucperkins 798d86c075 Add README note about local dev
Signed-off-by: lucperkins <lucperkins@gmail.com>
2019-04-05 10:51:41 -07:00
lucperkins 75a3f79090 Fix links and add link checking instructions
Signed-off-by: lucperkins <lucperkins@gmail.com>
2019-04-04 09:53:38 -07:00
lucperkins bb0d4e271b New OPA website (Hugo + Netlify)
Signed-off-by: lucperkins <lucperkins@gmail.com>
2019-03-26 13:45:50 -07:00
Torin Sandall ce9a6e0c9a Update docs build process for new front page
These changes just update the build process for the new front page. As
part of these changes, the build should now be run under the host user
account instead of as root (this fixes the issue for site build
artifacts being owned by root.) To make that work the gitbook and npm
directories used by the docs build process need to be located under the
root directory so that they're writable by the user.

With these changes, the first time you build the site locally gitbook
needs to be installed but after that it's cached locally in the .gitbook
directory (so subsequent builds are fast when coupled with the vendored
node_modules for the gitbook plugins).

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2018-11-26 15:10:14 -08:00
Eva Xiaohui Luo 25ba04c980 Refresh OPA website
These changes contain a redesign of the OPA website. The main changes
are (1) new frontpage w/ refreshed messaging and assets and (2) docs
ported to gitbook.
2017-07-05 15:39:45 -07:00