Skip to content

Commit

Permalink
Merge pull request #4 from go-vela/vader-icons
Browse files Browse the repository at this point in the history
feat: add fontawesome icons and tweak default colors
  • Loading branch information
KillEdgier authored Dec 16, 2024
2 parents 8f8ccd9 + 5c942ff commit 4ee161d
Show file tree
Hide file tree
Showing 8 changed files with 255 additions and 57 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 9
run_install: true

- uses: actions/setup-node@v4
with:
node-version: 22
Expand Down
123 changes: 79 additions & 44 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,48 @@
import {themes as prismThemes} from 'prism-react-renderer';
import { themes as prismThemes } from 'prism-react-renderer';

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

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Vela External Prototype',
tagline: 'Wouldst thou like to Vela deliciously?',
title: 'Vela',
tagline: 'Vela is a Pipeline Automation (CI/CD) framework built on Linux container technology written in Golang.',
favicon: 'img/favicon.ico',

// Set the production url of your site here
url: 'https://go-vela.github.io/',
url: 'https://pages.git.target.com',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/docs-v2/',
plugins: [require.resolve('docusaurus-lunr-search')],
plugins: [
require.resolve('docusaurus-lunr-search'),
// [
// "docusaurus-plugin-remote-content",
// {
// // options here
// name: "plugin-content-bar", // used by CLI, must be path safe
// sourceBaseUrl: "https://<INSERT GITHUB PAT>@raw.git.target.com/DavidVader/remote-docs-bar/main/", // the base url for the markdown (gets prepended to all of the documents when fetching)
// outDir: "docs/usage/plugins/registry", // the base directory to output to.
// documents: ["DOCS.md"], // the file names to download
// modifyContent: modifyContent,
// },
// ],
// [
// "docusaurus-plugin-remote-content",
// {
// // options here
// name: "plugin-content-foo", // used by CLI, must be path safe
// sourceBaseUrl: "https://<INSERT GITHUB PAT>@raw.git.target.com/DavidVader/remote-docs-foo/main/", // the base url for the markdown (gets prepended to all of the documents when fetching)
// outDir: "docs/usage/plugins/registry", // the base directory to output to.
// documents: ["DOCS.md"], // the file names to download
// modifyContent: modifyContent,
// },
// ],
],

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'actions-playground',
projectName: 'vela-prototype',
organizationName: 'actions-playground',
projectName: 'vela-prototype',
deploymentBranch: 'gh-pages',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
Expand Down Expand Up @@ -59,53 +83,52 @@ const config = {
},
}),
],

],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
image: 'img/vela.png',
navbar: {
title: 'Vela External Protoype',
title: 'Vela',
logo: {
alt: 'My Site Logo',
src: 'img/vela.png',
},
items:
[
{
type: 'docSidebar',
position: 'left',
sidebarId: 'installation',
label: 'Installation',
},
{
type: 'docSidebar',
position: 'left',
sidebarId: 'usage',
label: 'Usage',
},
{
type: 'docSidebar',
position: 'left',
sidebarId: 'reference',
label: 'Reference',
},
{to: '/blog', label: 'Blog', position: 'left'},
{
type: 'docsVersionDropdown',
label: 'version',
position: 'right',
dropdownItemsAfter: [{to: '/versions', label: 'All versions'}],
dropdownActiveClassDisabled: true,
},
{
href: 'https://github.com/go-vela',
label: 'Vela on GitHub',
position: 'right',
},
],
items:
[
{
type: 'docSidebar',
position: 'left',
sidebarId: 'installation',
label: 'Installation',
},
{
type: 'docSidebar',
position: 'left',
sidebarId: 'usage',
label: 'Usage',
},
{
type: 'docSidebar',
position: 'left',
sidebarId: 'reference',
label: 'Reference',
},
{ to: '/blog', label: 'Blog', position: 'left' },
{
type: 'docsVersionDropdown',
label: 'version',
position: 'right',
dropdownItemsAfter: [{to: '/versions', label: 'All versions'}],
dropdownActiveClassDisabled: true,
},
{
href: 'https://github.com/go-vela',
label: 'Vela on GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
Expand All @@ -117,5 +140,17 @@ const config = {
},
}),
};
// hihello

function modifyContent(filename, content) {
const titleMatch = content.match(/^#\s*(.+)/);
if (titleMatch && titleMatch[1]) {
filename = `${titleMatch[1]}.md`;
}

return {
filename: filename,
content: content,
};
}

export default config;
69 changes: 69 additions & 0 deletions package-lock.json

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

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
"dependencies": {
"@docusaurus/core": "3.6.3",
"@docusaurus/preset-classic": "3.6.3",
"@fortawesome/fontawesome-svg-core": "^6.7.1",
"@fortawesome/free-brands-svg-icons": "^6.7.1",
"@fortawesome/free-regular-svg-icons": "^6.7.1",
"@fortawesome/free-solid-svg-icons": "^6.7.1",
"@fortawesome/react-fontawesome": "^0.2.2",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
"docusaurus-lunr-search": "^3.5.0",
Expand Down
65 changes: 65 additions & 0 deletions pnpm-lock.yaml

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

Loading

0 comments on commit 4ee161d

Please sign in to comment.