Skip to content

provide nice documentation #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
5 tasks done
nibtime opened this issue Apr 21, 2022 · 0 comments · Fixed by #51
Closed
5 tasks done

provide nice documentation #30

nibtime opened this issue Apr 21, 2022 · 0 comments · Fixed by #51
Assignees
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@nibtime
Copy link
Owner

nibtime commented Apr 21, 2022

Motivation

Both as a reference for frontend web security for me on top of the lib and for ppl who somehow find this lib and want to use it.

Docs website

https://nextra.vercel.app/ seems really nice for that. Plus, it can be an additional test for the package as is a Next.JS.

Rough Structure

The most ground is already covered in README, which should be made terser when docs site exists.

  • Why
  • Get Started
  • Features
    • Base Configuration of Security Headers with next-safe
    • Strict CSP for hybrid apps
    • Inline Styles in CSP without 'unsafe-inline'
    • CSP Violation Reporting
  • Middleware
    • Composing middlewares (chain)
    • Available middlewares
    • nextSafe
    • strictDynamic
    • strictInlineStyles
    • reporting
  • Recipies
    • Set up CSP violation reporting with Sentry
  • Advanced
    • The fundamental problems of allowlist CSPs

update JSDoc

for nice in-IDE documentation with IntelliSense

  • fix typos
  • place docs of middleware above withDefaultConfig so it appears in IntelliSense when imported
  • describe parameters, return values, and properties were missing and not self-explanatory by name.

Setup MDX docs with Nextra

  • intialize docs project
  • configure with Next 12.2 middleware and strict CSP so it's itself an e2e test

Additional Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant