Commit Graph

29 Commits

Author SHA1 Message Date
Patrick East 7002b6f92b Add support for release candidate version tags
Any release tag with a `rc` string in the the semver
will be ignored for the docs on the website and will _not_ update the
"latest" docker image tag, or "latest" downloads url.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2020-03-26 11:55:49 -07:00
Patrick East 1fdb3264db docs: Update minimist dev tool dependency
More follow on to fixing our dev tooling for the website for:

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-7598

Signed-off-by: Patrick East <east.patrick@gmail.com>
2020-03-16 18:13:47 -07:00
Patrick East 015e1b5291 docs: Update acorn to fix CVE with dev tooling
Fixing https://github.com/advisories/GHSA-7fhm-mqm4-2wp7

This also fixes the unit tests (not sure how long they've been borken)
and makes them run as part of the netlify preview build, so any
regressions should be seen in PR's.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2020-03-16 17:52:02 -07:00
Lawrence Gripper f874165aa2 Increase liveblock button size
Signed-off-by: Lawrence Gripper <info@grippers.co.uk>
2020-01-15 12:57:49 -08:00
Patrick East 11503a770c Update serialize-javascript for live-blocks tooling
There is a known security issue with the older version. Updating to
the latest mitigates the risk.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-12-10 10:03:45 -08:00
Patrick East 731dc1883a docs/website: Fix live-blocks interaction on edge/live pages
This was changed as part of the homepage rework but ended up being
both unused and broken.. so reverting it back to the way it was
before.

The live blocks on the home page are not interactive, so this works
out fine as-is. In the future we may need to revisit.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-12-09 09:39:41 -05:00
Patrick East 418d7334ea website: Replace homepage with new version
This integrates the new https://openpolicyagent.org/ home page
contents into the site build.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-11-17 19:07:05 -08:00
Patrick East 3bee3efc68 live-blocks: Fix for new playground undefined eval response
The playground changed to just return a null result rather than
returning a 4xx error for the response. We need to catch this case
and raise the expected OPAError in the live blocks scripts to keep
the UI behavior the same.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-11-16 14:04:05 -08: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
Tim Hinrichs 1825f2be3f docs: Add integration-index README
Signed-off-by: Tim Hinrichs <tim@styra.com>
2019-11-04 16:58:43 -05:00
Paul Mundt 9f3f54050f Add openfaas-function-authorization to integration index
Signed-off-by: Paul Mundt <paul.mundt@adaptant.io>
2019-10-28 10:10:09 -07:00
Paul Mundt 5eb39f41c7 Add dart-authorization to integrations list
Signed-off-by: Paul Mundt <paul.mundt@adaptant.io>
2019-10-28 10:10:09 -07:00
Tim Hinrichs a2ad30b5f7 docs: Add integration index
The integration index is a collection of OPA integrations, including
metadata with pointers to code, tutorials, blogs, videos, etc.

This change is a first step in the creation of that integration index.

Signed-off-by: Tim Hinrichs <tim@styra.com>
2019-10-28 10:10:09 -07:00
Patrick East 64f87cc2d9 docs/live-blocks: Update codemirror-rego to 1.1.0
This brings in syntax highlighting for the `some` keyword

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-10-22 12:58:06 -07:00
Patrick East bc3bf0e7fa docs: Preprocess live-blocks with current OPA HEAD
This changes to no longer download the `edge` release binary (we still
publish one for anyone who wants to use the current master). This way
for PR's and for development we are going to process the `edge`
documentation with the version of OPA that is the current HEAD. For
the live site this will always be the current master branch.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-10-04 12:37:15 -07:00
Patrick East 912f9c1da3 live-blocks: Update to handle new JSON CLI format
As of now the "edge" docs have a newer standardized format for output.
The preprocessing step for live-blocks needed to be updated to handle
parsing it.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-27 16:39:28 -07:00
Torin Sandall a9b41cb01b docs: Fix preprocessing to fetch OPA binary correctly
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2019-09-12 18:59:04 -04:00
Torin Sandall 65cc5f8446 docs: Activate live blocks on the latest version of the docs
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2019-09-12 18:06:53 -04:00
Torin Sandall 583b67cb57 docs: Refresh the introduction page
This commit updates the introduction page to focus on Rego and
integrating with OPA (whereas the old introduction content focused on
high-level concepts like policy-decoupling, the data document, etc.)

The new introduction content provides a concise overview of OPA and
then launches into an tour of Rego (by example) that shows the core
concepts in the language. The content ends with an overview of
different ways you can interact with OPA.

The old introduction content has been moved into the Philosophy page
and the How Does OPA Work? page has been removed/replaced by the new
introduction page.

With these changes we can update the frontpage with links to core OPA
introduction and then different use cases (e.g., Kubernetes, Envoy,
etc.)

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2019-09-11 13:36:19 -04:00
Patrick East 7a9a78fa2a docs: Use full copy for latest instead of shadow
Instead of using url rewriting tricks we will just copy the latest
docs as part of the build process for a "latest" version.

In the version selector code we need to handle this to hide the
version, but overall it simplifies the template code.. so thats nice.

Best part, and main reason for doing this, is that the pretty url
feature will now work on the `/docs/latest/*` urls. It will fix some
weirdness with the relative url links we use in the markdown content
and remove a duplicate search result.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-10 09:58:50 -07:00
Patrick East 13f1de2982 docs: Stop showing versions <0.10.7
This lets us simplify some of the code and there isn't really a great
reason to keep the older docs up at this point.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-10 09:58:50 -07:00
Patrick East 968ad5919c docs: Fix load-docs.sh when HEAD is both a tag and branch
If there was a tag and branch that both referenced HEAD it would
return to the tag instead of branch. This change gives priority to
the branch if the current HEAD corresponds to one.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-10 09:58:50 -07:00
Patrick East 6b6dd1cf83 docs: remove lint step from live-blocks
This should fix the critical vulnerability found by scanners in the
eslint-utils package by removing the lint script.

We can re-visit this again in the future when someone can spend more
time to fix it.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-09-05 19:18:36 -06: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
Torin Sandall 983dfd4435 docs: Fix package parsing in preprocessor
The regexp was not allowing comments at the end of the line.

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2019-08-23 16:50:32 -04: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 58d336aff9 Refactor doc directories
Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-04-26 17:12:15 -07:00