Giter Club home page Giter Club logo

documentationwebsite's People

Contributors

akumars1 avatar ibreakthecloud avatar ogarrett avatar ramanan-ravi avatar rs280 avatar saurabh2253 avatar tomaszjonak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

documentationwebsite's Issues

Support bigpicture

Hello BigPicture team,

We are an existing BigPicture client (Deepfence.io). I'm creating a documentation site using a single-page web app framework called Docusaurus (docusaurus.io). Do you have any advice on how to install the tracking javascript on this platform? Thank you


Hey Owen,

We just checked out Docusaurus as we weren't familiar with it. In looking through the docs, it doesn't seem there's an easy, straight forward way to install misc scripts.

Apart from creating a custom BigPicture plugin, the "easiest" way may be via Google Tag Manager (GTM). It appears there's already a plugin for that (https://www.npmjs.com/package/docusaurus-gtm-plugin). So you could install that, then load BP via GTM. That should work, but it may require some tweaking / testing to ensure it only fires in your prod environment.

It should have a dedicated section for contributors

Giving shoutouts in the right home page actually boosts the number of people who will eventually contribute to the repo.

If the reviewer find the issue logical and has worth in it. Do assign me to this I would like to contribute.

Cache GitHub API calls for home page

See discussion in #20

Summary:

Home page render makes 6 unauthenticated calls to GH API. GH limits each source IP to 60 calls per hour, meaning the home page will not display GH stats for a user if they visit the home page 7 times in one hour.

An authentication token could overcome this, but has other issues. A better solution would be to (either or both):

  • reduce the number of calls from 6 to 1, by refactoring the GH buttons to share the API call
  • cache the GH api calls locally for 60 minutes

Deepfence Cloud Ts&Cs and SLAs

Deepfence Cloud Ts&Cs and SLAs point to locations on the (legacy) sphinx docs site. Need to check and update the links when we publish new docs site

docs server container not restarting if nginx gets killed

2023/02/21 06:08:58 [notice] 1#1: signal 3 (SIGQUIT) received, shutting down
2023/02/21 06:08:58 [notice] 26#26: gracefully shutting down
2023/02/21 06:08:58 [notice] 26#26: exiting
2023/02/21 06:08:58 [notice] 27#27: exiting
2023/02/21 06:08:58 [notice] 26#26: exit
2023/02/21 06:08:59 [notice] 1#1: signal 17 (SIGCHLD) received from 26
2023/02/21 06:08:59 [notice] 1#1: worker process 26 exited with code 0
2023/02/21 06:08:59 [notice] 1#1: signal 29 (SIGIO) received
2023/02/21 06:08:59 [notice] 1#1: signal 17 (SIGCHLD) received from 27
2023/02/21 06:08:59 [notice] 1#1: cache manager process 27 exited with code 0
2023/02/21 06:08:59 [notice] 1#1: exit
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/docker-entrypoint.sh
/docker-entrypoint.d/docker-entrypoint.sh: line 7: can't open /etc/nginx/conf.d/community.deepfence.io.conf.template: no such file
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/docker-entrypoint.sh

ThreatMapper Architecture - rendering issues

Build the full website (make build)

Check the ThreatMapper Architecture page (http://localhost/docs/threatmapper/architecture/)

Sometimes, the sidebar does not render (you only see the main content). Check the sidebars/threatmapper.js file; this problem appears to be related to the link / id:

      link: {
        type: 'doc',
        id: 'threatmapper/architecture/index'
      },

If it fails, try threatmapper/architecture.

Need to debug this, as the problem is difficult to detect and is intermittent. It does not appear to affect any other docs pages

Debug submodules - importing FlowMeter fails

Importing FlowMeter as a submodule fails:

$ git submodule update --remote
fatal: Needed a single revision
Unable to find current origin/master revision in submodule path 'product-docs/FlowMeter'

Determine build and publish process for website

References: https://docusaurus.io/docs/deployment

You can:

  1. Run an interactive build of the website using yarn start
  2. Build and serve the website using yarn run serve --build --port 8001 --host 0.0.0.0

There's a basic NGINX proxy front-end that does TLS termination and forwards to the yarn process (port 8001).

TODO: Need to determine the final build and publish process for the website.

Feature: tabbed view to explore ways to get into the community

Something like the following:
image

Slack - join, meet engineers, ask and learn
GitHub - install and explore the products, share feature ideas and controbite
Twitter - latest community news
LinkedIn - meet the deepfence team
G2 - share your experiences with Deepfence projects

TODO: add gartner peer insights and invite for $25 for honest review

Migrate API docs to new platform

API documentation:

https://github.com/deepfence/deepfence_runtime_api
https://deepfence.github.io/deepfence_runtime_api/ (edited)

We use swagger to generate .rst file / .html file
https://github.com/deepfence/deepfence_docs/blob/0c448525c6cbd83067dd642ac1abf9eb8a843471/api.rst
https://github.com/deepfence/deepfence_runtime_api/blob/master/index.html

Currently, the new docs point to the github repo for the API docs: https://.../threatstryker/api-reference so there’s no rush to move the API docs into the new platform.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.