opa icon indicating copy to clipboard operation
opa copied to clipboard

Reorganize the miscellaneous section

Open tsandall opened this issue 2 years ago • 1 comments

The MISCELLANEOUS top-level section in the docs navigation has grown organically over time. It feels like it's time to reorganize the content under MISCELLANEOUS that it's easier for people to find and more consistent.

image

Here's my proposal for where the content ought to live:

CORE

  • Policy Language
    • Metadata (currently called "Annotations")
    • Schema (currently called "Type Checking")
    • Future (w/ explanation of opt-in mechanism)
    • Strict Mode (currently called "Compiler Strict Mode")
  • External Data
    • Option 1: JWT Tokens
    • OAuth2 and OIDC Samples (currently called "OAuth2 and OIDC")
  • Intermediate Representation
  • WebAssembly

OPERATIONS

  • Storage
    • Disk (should also mention this under Policy Performance page when discussing memory footprint)

MISCELLANEOUS

  • Editor and IDE Support
  • Comparison to Other Systems

SUPPORT

  • FAQ
  • Ecosystem
  • Enterprise

The only item that I've left out is the Rego Playground link. I think we should make this more prominent--e.g., put a link into the horizontal navbar at the top.

tsandall avatar Apr 23 '22 12:04 tsandall

/assign

avinashdesireddy avatar Jun 07 '22 19:06 avinashdesireddy

Hi! I want to work on this issue.

aarushisoni avatar Nov 28 '22 14:11 aarushisoni

@aarushisoni Please do! Also please have a look at the prior attempts ☝️

srenatus avatar Nov 28 '22 14:11 srenatus

@aarushisoni Please do! Also please have a look at the prior attempts ☝️

it will be helpful if you can tell me where exactly I have to make changes like in which file.

aarushisoni avatar Dec 04 '22 12:12 aarushisoni

So we're using Hugo for organizing our docs pages. The preamble of each markdown file determines its section, like, wasm.md:

---
title: WebAssembly
kind: misc
weight: 1
---

# What is WebAssembly (Wasm)?

I'm afraid I'm not 100% certain what "weight" means here...

srenatus avatar Dec 06 '22 13:12 srenatus

Hey Team :wave:, @srenatus, @aarushisoni

I hope this helps with the weight :point_right: https://bwaycer.github.io/hugo_tutorial.hugo/content/ordering/

Its something to do with the way Hugo orders content

Parsifal-M avatar Jan 17 '23 15:01 Parsifal-M

I once worked on a Hugo site that made use of the weight field on staff pages - it raised the eyebrows of a few new joiners! 😂 In the end I opted for a random order (on build) to avoid the problem of ranking the staff page...

charlieegan3 avatar Jan 17 '23 15:01 charlieegan3

Thanks @lakhanjindam. Go for it! Let us know if you have any questions.

ashutosh-narkar avatar Apr 02 '23 20:04 ashutosh-narkar

Just confirming, this is the final format we are expecting, right ? https://github.com/open-policy-agent/opa/issues/4614#issue-1213291154

Yes that seems about right.

ashutosh-narkar avatar Apr 04 '23 06:04 ashutosh-narkar

I haven't tried to build the site locally lately. You can push your changes to your fork and create a draft PR. In that Netlify will generate a docs preview.

ashutosh-narkar avatar Apr 05 '23 06:04 ashutosh-narkar

Documentation for setting up docs locally using netlify is kind of outdated, can you share what are the current steps or commands around that ? Also i am getting an error when i try to build site from main branch on netlify Screenshot 2023-04-04 at 11 01 10 PM

Hey 👋

Apologies, not trying to derail the conversation but I was wondering if you are following this? -> https://www.openpolicyagent.org/docs/latest/contrib-docs/#test-your-changes

I have worked on the docs recently and did not face any issues, maybe also @charlieegan3 might know whats happening here 🤔

Parsifal-M avatar Apr 05 '23 06:04 Parsifal-M

I was suggesting you create a draft PR in https://github.com/open-policy-agent/opa with your changes and then you can get the Netlify preview of the docs.

ashutosh-narkar avatar Apr 07 '23 18:04 ashutosh-narkar

Resource Utilization would be a good place to mention this.

ashutosh-narkar avatar Apr 11 '23 21:04 ashutosh-narkar