Projects STRLCPY ebpfguard Commits 84bf7032
🤬
  • ■ ■ ■ ■ ■ ■
    README.md
    skipped 69 lines
    70 70  ```
    71 71   
    72 72  Imports and cargo file are available in [example source code](examples/readme_mount).
    73  -For more check out [examples doc](doc/examples.md).
     73 +For more check out [examples doc](docs/gh/examples.md).
    74 74   
    75 75  ## Supported LSM hooks
    76 76   
    skipped 10 lines
    87 87   
    88 88  ## Prerequisites
    89 89   
    90  -Check [prerequisites doc](doc/prerequisites.md) to set up your environment.
     90 +Check [prerequisites doc](docs/gh/prerequisites.md) to set up your environment.
    91 91   
    92 92  ## Development
    93 93   
    94  -Check [development doc](doc/development.md) for compillation and testing commands.
     94 +Check [development doc](docs/gh/development.md) for compillation and testing commands.
    95 95   
    96 96  ## Get in touch
    97 97   
    98  -Thank you for using Ebpfguard. Please feel welcome to participate in the [Deepfence community](doc/community.md).
     98 +Thank you for using Ebpfguard. Please feel welcome to participate in the [Deepfence community](docs/gh/community.md).
    99 99   
    100 100  * [Deepfence Community Website](https://community.deepfence.io)
    101 101  * [<img src="https://img.shields.io/badge/[email protected]?logo=slack">](https://join.slack.com/t/deepfence-community/shared_invite/zt-podmzle9-5X~qYx8wMaLt9bGWwkSdgQ) Got a question, need some help? Find the Deepfence team on Slack
    102 102  * [![GitHub issues](https://img.shields.io/github/issues/deepfence/ebpfguard)](https://github.com/deepfence/ebpfguard/issues) Got a feature request or found a bug? Raise an issue
    103  -<!-- * [![Documentation](https://img.shields.io/badge/documentation-read-green)](https://community.deepfence.io/docs/ebpfguard/) Read the documentation in the [Deepfence Ebpfguard Documentation](https://community.deepfence.io/docs/ebpfguard/) -->
     103 +<!-- * [![Documentation](https://img.shields.io/badge/documentation-read-green)](https://community.deepfence.io/docs/gh/ebpfguard/) Read the documentation in the [Deepfence Ebpfguard Documentation](https://community.deepfence.io/docs/gh/ebpfguard/) -->
    104 104  <!-- * [productsecurity at deepfence dot io](SECURITY.md): Found a security issue? Share it in confidence -->
    105 105  * Find out more at [deepfence.io](https://deepfence.io/)
    106 106   
    skipped 8 lines
  • ■ ■ ■ ■ ■ ■
    docs/.gitignore
     1 +# Dependencies
     2 +/node_modules
     3 + 
     4 +# Production
     5 +/build
     6 + 
     7 +# Generated files
     8 +.docusaurus
     9 +.cache-loader
     10 + 
     11 +# Misc
     12 +.DS_Store
     13 +.env.local
     14 +.env.development.local
     15 +.env.test.local
     16 +.env.production.local
     17 + 
     18 +npm-debug.log*
     19 +yarn-debug.log*
     20 +yarn-error.log*
     21 + 
  • ■ ■ ■ ■ ■ ■
    docs/babel.config.js
     1 +module.exports = {
     2 + presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
     3 +};
     4 + 
  • ■ ■ ■ ■ ■ ■
    docs/docs/ebpfguard/index.md
     1 +---
     2 +title: Introduction to Ebpfguard
     3 +---
     4 + 
     5 +# Ebpfguard
     6 + 
     7 +Docs under construction. Refer to [github page](https://github.com/deepfence/ebpfguard) for now.
     8 + 
  • ■ ■ ■ ■ ■ ■
    docs/docusaurus.config.js
     1 +// @ts-check
     2 +// Note: type annotations allow type checking and IDEs autocompletion
     3 + 
     4 +const lightCodeTheme = require('prism-react-renderer/themes/vsLight');
     5 +const darkCodeTheme = require('prism-react-renderer/themes/dracula');
     6 + 
     7 +/** @type {import('@docusaurus/types').Config} */
     8 +const config = {
     9 + title: 'Deepfence Ebpfguard',
     10 + tagline: 'Library for seamless utilization of BPF LSM hooks',
     11 + url: 'http://ebpfguard.local',
     12 + baseUrl: '/',
     13 + 
     14 + onBrokenLinks: 'throw',
     15 + onBrokenMarkdownLinks: 'throw',
     16 + favicon: '/img/deepfence.png',
     17 + 
     18 + // Even if you don't use internalization, you can use this field to set useful
     19 + // metadata like html lang. For example, if your site is Chinese, you may want
     20 + // to replace "en" with "zh-Hans".
     21 + i18n: {
     22 + defaultLocale: 'en',
     23 + locales: ['en'],
     24 + },
     25 + 
     26 + presets: [
     27 + [
     28 + 'classic',
     29 + /** @type {import('@docusaurus/preset-classic').Options} */
     30 + ({
     31 + docs: {
     32 + sidebarPath: require.resolve('./sidebars.js'),
     33 + // Please change this to your repo.
     34 + // Remove this to remove the "edit this page" links.
     35 + editUrl:
     36 + 'https://github.com/deepfence/ebpfguard/docs/',
     37 + breadcrumbs: true,
     38 + routeBasePath: '/',
     39 + // options for remark-admonitions
     40 + admonitions: {},
     41 + },
     42 + blog: false,
     43 + theme: {
     44 + customCss: require.resolve('./static/css/deepfence.css'),
     45 + },
     46 + }),
     47 + ],
     48 + ],
     49 + 
     50 + themeConfig:
     51 + /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
     52 + ({
     53 + docs: {
     54 + sidebar: {
     55 + hideable: true,
     56 + },
     57 + },
     58 + navbar: {
     59 + hideOnScroll: false,
     60 + title: '',
     61 + logo: {
     62 + alt: 'Deepfence',
     63 + src: '/img/deepfence-logo-black.svg',
     64 + srcDark: '/img/deepfence-logo-white.svg',
     65 + },
     66 + items: [
     67 + {
     68 + type: 'doc',
     69 + docId: 'ebpfguard/index',
     70 + label: 'Ebpfguard Documentation',
     71 + },
     72 + {
     73 + to: 'https://deepfence.io/',
     74 + label: 'deepfence.io',
     75 + position: 'right',
     76 + },
     77 + {
     78 + href: 'https://github.com/deepfence',
     79 + label: 'GitHub',
     80 + position: 'right',
     81 + },
     82 + ],
     83 + },
     84 + footer: {
     85 + style: 'dark',
     86 + logo: {
     87 + alt: 'Deepfence, Inc',
     88 + src: '/img/deepfence-logo-white.svg',
     89 + width: 160,
     90 + height: 51,
     91 + },
     92 + copyright: `Copyright © ${new Date().getFullYear()} Deepfence, Inc. Built with Docusaurus.`,
     93 + },
     94 + colorMode: {
     95 + defaultMode: 'light',
     96 + disableSwitch: false,
     97 + respectPrefersColorScheme: true,
     98 + },
     99 + prism: {
     100 + theme: lightCodeTheme,
     101 + darkTheme: darkCodeTheme,
     102 + },
     103 + }),
     104 +};
     105 + 
     106 +module.exports = config;
     107 + 
  • doc/community.md docs/gh/community.md
    Content is identical
  • doc/development.md docs/gh/development.md
    Content is identical
  • doc/examples.md docs/gh/examples.md
    Content is identical
  • doc/prerequisites.md docs/gh/prerequisites.md
    Content is identical
  • ■ ■ ■ ■ ■ ■
    docs/package.json
     1 +{
     2 + "name": "my-site",
     3 + "version": "0.0.0",
     4 + "private": true,
     5 + "scripts": {
     6 + "docusaurus": "docusaurus",
     7 + "start": "docusaurus start",
     8 + "build": "docusaurus build",
     9 + "swizzle": "docusaurus swizzle",
     10 + "deploy": "docusaurus deploy",
     11 + "clear": "docusaurus clear",
     12 + "serve": "docusaurus serve",
     13 + "write-translations": "docusaurus write-translations",
     14 + "write-heading-ids": "docusaurus write-heading-ids"
     15 + },
     16 + "dependencies": {
     17 + "@docusaurus/core": "^2.2.0",
     18 + "@docusaurus/preset-classic": "^2.2.0",
     19 + "@mdx-js/react": "^1.6.22",
     20 + "clsx": "^1.2.0",
     21 + "prism-react-renderer": "^1.3.5",
     22 + "react": "^18.2.0",
     23 + "react-dom": "^18.2.0",
     24 + "react-player": "^2.10.1"
     25 + },
     26 + "devDependencies": {
     27 + "@docusaurus/module-type-aliases": "^2.2.0"
     28 + },
     29 + "browserslist": {
     30 + "production": [
     31 + ">0.5%",
     32 + "not dead",
     33 + "not op_mini all"
     34 + ],
     35 + "development": [
     36 + "last 1 chrome version",
     37 + "last 1 firefox version",
     38 + "last 1 safari version"
     39 + ]
     40 + },
     41 + "engines": {
     42 + "node": ">=16.14"
     43 + }
     44 +}
     45 + 
  • ■ ■ ■ ■ ■ ■
    docs/sidebars.js
     1 +/**
     2 + * Creating a sidebar enables you to:
     3 + - create an ordered group of docs
     4 + - render a sidebar for each doc of that group
     5 + - provide next/previous navigation
     6 + 
     7 + The sidebars can be generated from the filesystem, or explicitly defined here.
     8 + 
     9 + Create as many sidebars as you want.
     10 + */
     11 + 
     12 +// @ts-check
     13 + 
     14 +/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
     15 +const sidebars = {
     16 + ebpfguard: [
     17 + {
     18 + type: 'html',
     19 + value: 'Deepfence Ebpfguard',
     20 + className: 'sidebar-title',
     21 + },
     22 + 'ebpfguard/index',
     23 + ],
     24 +};
     25 + 
     26 +module.exports = sidebars;
     27 + 
  • ■ ■ ■ ■ ■ ■
    docs/src/pages/index.md
     1 +import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
     2 +export function siteConfig() {
     3 + const {siteConfig, siteMetadata} = useDocusaurusContext();
     4 + return siteConfig;
     5 +}
     6 +export function siteMetadata() {
     7 + const {siteConfig, siteMetadata} = useDocusaurusContext();
     8 + return siteMetadata;
     9 +}
     10 + 
     11 + 
     12 +<h1>{siteConfig().title}</h1>
     13 + 
     14 +<p>{siteConfig().tagline}</p>
     15 + 
     16 +<span>
     17 + <a href={siteConfig().themeConfig.navbar.items[0].docId.replace('/index', '')}>
     18 + <div class="deepfence-button">
     19 + {siteConfig().themeConfig.navbar.items[0].label}
     20 + </div>
     21 + </a>
     22 +</span>
     23 + 
     24 +<span>&nbsp;&nbsp;</span>
     25 + 
     26 +<span>
     27 + <a href={siteConfig().presets[0][1].docs.editUrl}>
     28 + <div class="deepfence-button">
     29 + Edit on GitHub
     30 + </div>
     31 + </a>
     32 +</span>
     33 + 
     34 + 
     35 +<hr/>
     36 + 
     37 +<details>
     38 + <summary>Technical Details</summary>
     39 + 
     40 +<details>
     41 + <summary><b>Site Config.</b> Site config comes from <code>docusaurus.config.js</code></summary>
     42 + <pre>{JSON.stringify( siteConfig(), null, 2 )}</pre>
     43 +</details>
     44 + 
     45 + 
     46 +<details>
     47 + <summary><b>Site MetaData.</b> Site metadata comes from docusaurus install</summary>
     48 + <pre>{JSON.stringify(siteMetadata(), null, 2) }</pre>
     49 +</details>
     50 + 
     51 +</details>
  • ■ ■ ■ ■ ■ ■
    docs/static/css/deepfence.css
     1 +/**
     2 + * Any CSS included here will be global. The classic template
     3 + * bundles Infima by default. Infima is a CSS framework designed to
     4 + * work well for content-centric websites.
     5 + */
     6 + 
     7 + 
     8 +/* fonts */
     9 +@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Display');
     10 + 
     11 +:root {
     12 + --ifm-font-family-base: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
     13 + --ifm-font-size-base: 16px;
     14 + --ifm-heading-font-weight: 300;
     15 + --ifm-navbar-shadow: 0px 2px 6px rgba(0,0,0,0.2);
     16 + --ifm-breadcrumb-border-radius: 0;
     17 + --ifm-breadcrumb-item-background-active: none;
     18 + 
     19 + /* --ifm-h1-font-size: 2.0rem;
     20 + --ifm-h2-font-size: 1.0rem;
     21 + --ifm-h3-font-size: 1.0rem;
     22 + --ifm-h4-font-size: 1.0rem;*/
     23 + 
     24 +}
     25 + 
     26 + 
     27 +article header h1 {
     28 +/* font-size: 5rem !important;*/
     29 + font-family: "Noto Sans Display" !important;
     30 +}
     31 +article header h2 {
     32 +/* font-size: 5rem !important;*/
     33 + font-family: "Noto Sans Display" !important;
     34 + font-weight: bold !important;
     35 +}
     36 +article header h3 {
     37 +/* font-size: 1.3rem !important;*/
     38 + font-family: "Noto Sans Display" !important;
     39 +}
     40 +article header h4 {
     41 +/* font-size: 1.1rem !important;*/
     42 + font-family: "Noto Sans Display" !important;
     43 +}
     44 + 
     45 + 
     46 +/* not sure why this is necessary */
     47 +pre code {
     48 + background-color: var(--ifm-code-background) !important;
     49 +}
     50 + 
     51 +/* Navbar dropdown - for titles */
     52 + 
     53 +.nav-dropdown-title {
     54 + font-size: 0.9rem !important;
     55 + border-bottom: 1px solid var(--ifm-color-button);
     56 + padding-top: 8px;
     57 + padding-left: 8px;
     58 +}
     59 + 
     60 + 
     61 + 
     62 +/* hide the toc */
     63 +/*.theme-doc-toc-desktop {*/
     64 +/* display: none;*/
     65 +/*}*/
     66 +/*.table-of-contents {*/
     67 +/* display: none;*/
     68 +/*}*/
     69 + 
     70 +.theme-doc-sidebar-container {
     71 + background-color: rgba(127,127,127,0.1);
     72 + font-family: "Noto Sans Display" !important;
     73 + font-size: 0.9rem !important;
     74 +}
     75 + 
     76 +.sidebar-title {
     77 + font-size: 1rem !important;
     78 + padding: var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal);
     79 + border-bottom: 1px solid var(--ifm-color-primary-darkest);
     80 +}
     81 + 
     82 + 
     83 + 
     84 +.deepfence-button {
     85 + background-color: var(--ifm-color-button);
     86 + border: 1px solid var(--ifm-color-button);
     87 + color: var(--ifm-color-button-text);
     88 + padding: 7px 16px;
     89 + margin: 4px 16px;
     90 + text-align: center;
     91 + display: inline-block;
     92 + font-size: 16px;
     93 + border-radius: 6px;
     94 + transition-duration: 0.4s;
     95 + box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px
     96 +}
     97 + 
     98 +.deepfence-button:hover {
     99 + background-color: var(--ifm-color-button-hover);
     100 + color: var(--ifm-color-button-text-hover);
     101 +}
     102 + 
     103 + 
     104 +/* Pagination Links at footer of page */
     105 + 
     106 +.pagination-nav__link {
     107 + background-color: var(--ifm-color-button);
     108 + border: 1px solid var(--ifm-color-button);
     109 + color: var(--ifm-color-button-text);
     110 + padding: 7px 16px;
     111 + margin: 4px 16px;
     112 + display: inline-block;
     113 + font-size: 16px;
     114 + border-radius: 6px;
     115 + transition-duration: 0.4s;
     116 + box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px
     117 +}
     118 +.pagination-nav__sublabel {
     119 + display: none;
     120 +}
     121 +.pagination-nav__label {
     122 + padding-top: 7px;
     123 +}
     124 +.pagination-nav__link:hover {
     125 + background-color: var(--ifm-color-button-hover);
     126 + color: var(--ifm-color-button-text-hover);
     127 +}
     128 + 
     129 +/* Informational cards */
     130 + 
     131 +.card {
     132 + background-color: rgba(127,127,127,0.1);
     133 + border-radius: 6px;
     134 + transition-duration: 0.4s;
     135 + box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px !important;
     136 +}
     137 + 
     138 + 
     139 +/* You can override the default Infima variables here. */
     140 +:root {
     141 + --ifm-color-primary: #1d3371;
     142 + --ifm-color-primary-dark: #1a2e66;
     143 + --ifm-color-primary-darker: #192b60;
     144 + --ifm-color-primary-darkest: #14244f;
     145 + --ifm-color-primary-light: #20387c;
     146 + --ifm-color-primary-lighter: #213b82;
     147 + --ifm-color-primary-lightest: #264293;
     148 + --ifm-code-font-size: 90%; /*95%;*/
     149 + --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
     150 + 
     151 + 
     152 + /* var(--ifm-alert-border-color) - light and dark */
     153 + --ifm-color-button: rgb(76, 179, 212);
     154 + 
     155 + /* var(--ifm-alert-background-color) - light */
     156 + --ifm-color-button-text: rgb(238, 249, 253);
     157 + --ifm-color-button-hover: rgb(238, 249, 253);
     158 + 
     159 + /* var(--ifm-alert-background-color) - dark */
     160 + --ifm-color-button-text-hover: rgb(25, 60, 71);
     161 + 
     162 + 
     163 + 
     164 +}
     165 + 
     166 +/* For readability concerns, you should choose a lighter palette in dark mode. */
     167 +[data-theme='dark'] {
     168 + --ifm-color-primary: #16c7f5;
     169 + --ifm-color-primary-dark: #0ab9e6;
     170 + --ifm-color-primary-darker: #09afda;
     171 + --ifm-color-primary-darkest: #0890b3;
     172 + --ifm-color-primary-light: #30cdf6;
     173 + --ifm-color-primary-lighter: #3cd0f7;
     174 + --ifm-color-primary-lightest: #63d9f8;
     175 + --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
     176 + 
     177 + /* var(--ifm-alert-border-color) - light and dark */
     178 + --ifm-color-button: rgb(76, 179, 212);
     179 + 
     180 + /* var(--ifm-alert-background-color) - dark */
     181 + --ifm-color-button-text: rgb(25, 60, 71);
     182 + --ifm-color-button-hover: rgb(25, 60, 71);
     183 + 
     184 + /* var(--ifm-alert-background-color) - light */
     185 + --ifm-color-button-text-hover: rgb(238, 249, 253);
     186 +}
  • docs/static/img/deepfence-logo-black.svg
  • docs/static/img/deepfence-logo-white.svg
  • docs/static/img/deepfence.png
  • docs/yarn.lock
    Diff is too large to be displayed.
Please wait...
Page is in error, reload to recover