Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- docv2-site # <--- CHECK THIS: Change to 'master' if your branch is named master

permissions:
contents: write

jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

# Setup Node.js
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

# Install Dependencies
- name: Install dependencies
run: npm ci

# Build the Docusaurus Site
- name: Build website
run: npm run build

# Publish to the gh-pages branch
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
4 changes: 2 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const config = {
},

// Set the production url of your site here
url: 'https://docs.devtron.ai',
url: 'https://ndwl.shop',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
Expand All @@ -30,7 +30,7 @@ const config = {

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'devtron-labs', // Usually your GitHub org/user name.
organizationName: 'hii-arpit', // Usually your GitHub org/user name.
projectName: 'devtron-documentation', // Usually your repo name.

onBrokenLinks: 'throw',
Expand Down
40 changes: 39 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"lucide-react": "^0.544.0",
"prism-react-renderer": "^2.3.0",
"react": "^19.0.0",
"react-dom": "^19.0.0"
"react-dom": "^19.0.0",
"react-markdown": "^10.1.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.9.1",
Expand Down
5 changes: 5 additions & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,11 @@ const sidebars = {
items: [
'reference/glossary',
'FAQs/devtron-troubleshoot',
{
type: 'link',
label: 'Troubleshooting Guide',
href: '/troubleshooting-guide',
},
{
type: 'category',
label: 'Upgrade Devtron',
Expand Down
Loading