documentationwebsite's People
documentationwebsite's Issues
Add twitter feed to home page
Optional interactive feature
Support docs.deepfence.io and community.deepfence.io
For the public website, we plan to support:
community.deepfence.io for the home page
docs.deepfence.io for the individual documentation pages
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.
GitHub icon on home page - dark mode
In dark mode, the GH icon on the home page is black. Should be white (or light gray)
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.
Live (or cached) docker hub pull stats on home page
Notes:
curl -s https://hub.docker.com/v2/repositories/deepfenceio/deepfence_agent_ce | jq '.pull_count'
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
Community Pack
Provide community pack with icons, logos, terms of use, sample content and FAQs for potential writers.
See https://drive.google.com/drive/u/1/folders/1LWi4tl-RCuxSi6FyMBTFlT16wECk4HI0
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
Maintain documentation for multiple versions
Add search
Add YouTube feed to home page
Optional interactive feature
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'
Top menu - wrong text color on mobile / narrow window
Determine build and publish process for website
References: https://docusaurus.io/docs/deployment
You can:
- Run an interactive build of the website using
yarn start
- 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
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
Add slack feed to home page
Optional interactive feature
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.
Add live (or cached) GitHub stars data
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.