Skip to content

Commit

Permalink
Docs: add .readthedocs.yaml (#378)
Browse files Browse the repository at this point in the history
* add .readthedocs.yaml

Signed-off-by: Aryan Rajoria <aryanrajoria1003@gmail.com>

* add docusaurus config

Signed-off-by: Aryan Rajoria <aryanrajoria1003@gmail.com>

* remove nodejs.install

Signed-off-by: Aryan Rajoria <aryanrajoria1003@gmail.com>

* change

Signed-off-by: Aryan Rajoria <aryanrajoria1003@gmail.com>

* change

Signed-off-by: Aryan Rajoria <aryanrajoria1003@gmail.com>

* change directory

Signed-off-by: Aryan Rajoria <aryanrajoria1003@gmail.com>

* change directory

Signed-off-by: Aryan Rajoria <aryanrajoria1003@gmail.com>

* nodejs version

Signed-off-by: Aryan Rajoria <aryanrajoria1003@gmail.com>

* readthedocs build.commands

Signed-off-by: Aryan Rajoria <aryanrajoria1003@gmail.com>

* add mkdir html

Signed-off-by: Aryan Rajoria <aryanrajoria1003@gmail.com>

* copyright

Signed-off-by: Aryan Rajoria <aryanrajoria1003@gmail.com>

* links

Signed-off-by: Aryan Rajoria <aryanrajoria1003@gmail.com>

* remove docusaurus links

Signed-off-by: Aryan Rajoria <aryanrajoria1003@gmail.com>

---------

Signed-off-by: Aryan Rajoria <aryanrajoria1003@gmail.com>
  • Loading branch information
aryan-rajoria authored Nov 21, 2024
1 parent 0c52c2a commit 3151eff
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 21 deletions.
12 changes: 12 additions & 0 deletions documentation/.readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2

build:
os: ubuntu-22.04
tools:
nodejs: "20"
commands:
- cd ./documentation && npm i && cd ..
- cd ./documentation && npm run build && cd ..
- mkdir -p $READTHEDOCS_OUTPUT/html/
- cd ./documentation && mv ./build/* $READTHEDOCS_OUTPUT/html

29 changes: 8 additions & 21 deletions documentation/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,16 @@ import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';

// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)

const config: Config = {
title: 'Dep-Scan',
tagline: 'Next generation security audit',
favicon: 'img/dep-scan-large.png',

// Set the production url of your site here
url: 'https://your-docusaurus-site.example.com',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
url: 'https://depscan.readthedocs.io/',
baseUrl: '/',

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'AppThreat', // Usually your GitHub org/user name.
organizationName: 'owasp-dep-scan', // Usually your GitHub org/user name.
projectName: 'dep-scan', // Usually your repo name.

onBrokenLinks: 'warn',
Expand All @@ -37,9 +31,9 @@ const config: Config = {
{
docs: {
sidebarPath: './sidebars.ts',
// Please change this to your repo.

routeBasePath: '/',
// Remove this to remove the "edit this page" links.

editUrl:
'https://github.com/owasp-dep-scan/dep-scan/tree/master/docs',
},
Expand All @@ -49,11 +43,9 @@ const config: Config = {
type: ['rss', 'atom'],
xslt: true,
},
// Please change this to your repo.
// Remove this to remove the "edit this page" links.

editUrl:
'https://github.com/owasp-dep-scan/dep-scan/tree/master/docs',
// Useful options to enforce blogging best practices
onInlineTags: 'warn',
onInlineAuthors: 'warn',
onUntruncatedBlogPosts: 'warn',
Expand All @@ -66,7 +58,6 @@ const config: Config = {
],

themeConfig: {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'OWASP Dep-Scan',
Expand Down Expand Up @@ -94,17 +85,13 @@ const config: Config = {
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
},
{
label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus',
},
{
label: 'X',
href: 'https://x.com/docusaurus',
label: 'Github',
href: 'https://github.com/owasp-dep-scan/dep-scan',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
copyright: `Copyright © ${new Date().getFullYear()} OWASP Foundation. Built with Docusaurus and ❤️.`,
},
prism: {
theme: prismThemes.github,
Expand Down

0 comments on commit 3151eff

Please sign in to comment.