Skip to content

Commit

Permalink
HPCC-32868 Add ECL language support to VitePress
Browse files Browse the repository at this point in the history
Add support for ECL Colouring in VitePress
Add support for dashboarding in VitePress

Signed-off-by: GordonSmith <[email protected]>
  • Loading branch information
GordonSmith committed Oct 24, 2024
1 parent ea449dc commit bfb0b9b
Show file tree
Hide file tree
Showing 5 changed files with 4,838 additions and 918 deletions.
134 changes: 75 additions & 59 deletions devdoc/.vitepress/config.js
Original file line number Diff line number Diff line change
@@ -1,64 +1,80 @@
export default {
title: 'HPCC Platform',
description: 'The HPCC-Platform from hpccsystems is an open source system for big data analysis. It uses a single language, platform and architecture to process data efficiently and fast.',
base: '/HPCC-Platform/',
srcDir: '..',
srcExclude: ["build/**", "dockerfiles/**", "docs/**", "esp/**", "helm/**", "initfiles/**", "plugins/**", "vcpkg/**"],
ignoreDeadLinks: true,
import { defineConfig } from "vitepress";
import { observable } from "@hpcc-js/markdown-it-plugins";
import { eclLang } from "@hpcc-js/markdown-it-plugins/ecl-lang";

themeConfig: {
repo: "hpcc-systems/HPCC-Platform",
docsBranch: "master",
search: {
provider: 'local'
},
editLink: {
pattern: 'https://github.com/hpcc-systems/HPCC-Platform/edit/master/:path',
text: 'Edit this page on GitHub'
},
lastUpdated: "Last Updated",
nav: [
{ text: 'Getting Started', link: '/devdoc/README' },
{ text: 'hpccsystems.com', link: 'https://hpccsystems.com' },
{ text: 'Changelog', link: 'https://hpccsystems.com/download/release-notes/' },
],
socialLinks: [
{ icon: 'github', link: 'https://github.com/hpcc-systems/HPCC-Platform' },
{ icon: 'linkedin', link: 'https://www.linkedin.com/company/hpcc-systems/home' },
{ icon: 'twitter', link: 'https://twitter.com/hpccsystems' },
{ icon: 'facebook', link: 'https://www.facebook.com/hpccsystems' },
{ icon: 'youtube', link: 'https://www.youtube.com/user/HPCCSystems' },
],
sidebar: [
{
text: 'General',
items: [
{ text: 'Getting Started', link: '/devdoc/README' },
{ text: 'Development Guide', link: '/devdoc/Development' },
{ text: 'C++ Style Guide', link: '/devdoc/StyleGuide' },
{ text: 'ECL Style Guide', link: '/ecllibrary/StyleGuide.html' },
{ text: 'Code Submission Guidelines', link: '/devdoc/CodeSubmissions' },
{ text: 'Code Review Guidelines', link: '/devdoc/CodeReviews' },
{ text: 'Writing Developer Documentation', link: '/devdoc/DevDocs' },
{ text: 'User Guides', link: '/devdoc/userdoc/README' },
{ text: 'Build on Github Actions', link: '/devdoc/UserBuildAssets' },
]
// https://vitepress.dev/reference/site-config
export default async () => {

return defineConfig({
title: 'HPCC Platform',
description: 'The HPCC-Platform from hpccsystems is an open source system for big data analysis. It uses a single language, platform and architecture to process data efficiently and fast.',
base: '/HPCC-Platform/',
srcDir: '..',
srcExclude: ["build-*/**", "build/**", "dockerfiles/**", "docs/**", "esp/**", "helm/**", "initfiles/**", "plugins/**", "vcpkg/**"],
ignoreDeadLinks: true,

themeConfig: {
search: {
provider: 'local'
},
editLink: {
pattern: 'https://github.com/hpcc-systems/HPCC-Platform/edit/master/:path',
text: 'Edit this page on GitHub'
},
{
text: 'Other',
items: [
{ text: 'Workunit Workflow', link: '/devdoc/Workunits' },
{ text: 'Code Generator', link: '/devdoc/CodeGenerator' },
{ text: 'Roxie', link: '/devdoc/roxie' },
{ text: 'Memory Manager', link: '/devdoc/MemoryManager' },
{ text: 'Metrics', link: '/devdoc/Metrics' },
]
lastUpdated: {
text: "Last Updated"
},
nav: [
{ text: 'Getting Started', link: '/devdoc/README' },
{ text: 'hpccsystems.com', link: 'https://hpccsystems.com' },
{ text: 'Changelog', link: 'https://hpccsystems.com/download/release-notes/' },
],
socialLinks: [
{ icon: 'github', link: 'https://github.com/hpcc-systems/HPCC-Platform' },
{ icon: 'linkedin', link: 'https://www.linkedin.com/company/hpcc-systems/home' },
{ icon: 'twitter', link: 'https://twitter.com/hpccsystems' },
{ icon: 'facebook', link: 'https://www.facebook.com/hpccsystems' },
{ icon: 'youtube', link: 'https://www.youtube.com/user/HPCCSystems' },
],
sidebar: [
{
text: 'General',
items: [
{ text: 'Getting Started', link: '/devdoc/README' },
{ text: 'Development Guide', link: '/devdoc/Development' },
{ text: 'C++ Style Guide', link: '/devdoc/StyleGuide' },
{ text: 'ECL Style Guide', link: '/ecllibrary/StyleGuide.html' },
{ text: 'Code Submission Guidelines', link: '/devdoc/CodeSubmissions' },
{ text: 'Code Review Guidelines', link: '/devdoc/CodeReviews' },
{ text: 'Writing Developer Documentation', link: '/devdoc/DevDocs' },
{ text: 'User Guides', link: '/devdoc/userdoc/README' },
{ text: 'Build on Github Actions', link: '/devdoc/UserBuildAssets' },
]
},
{
text: 'Other',
items: [
{ text: 'Workunit Workflow', link: '/devdoc/Workunits' },
{ text: 'Code Generator', link: '/devdoc/CodeGenerator' },
{ text: 'Roxie', link: '/devdoc/roxie' },
{ text: 'Memory Manager', link: '/devdoc/MemoryManager' },
{ text: 'Metrics', link: '/devdoc/Metrics' },
]
}

],
footer: {
message: 'Released under the Apache-2.0 License.',
copyright: 'Copyright © 2023-present hpccsystems.com'
}
},
markdown: {
// https://github.com/vuejs/vitepress/blob/main/src/node/markdown/markdown.ts
config: md => {
md.use(observable, { vitePress: true });
},

],
footer: {
message: 'Released under the Apache-2.0 License.',
copyright: 'Copyright © 2023-present hpccsystems.com'
languages: [eclLang()],
}
}
}
});
};
15 changes: 0 additions & 15 deletions devdoc/.vitepress/theme/custom.css

This file was deleted.

26 changes: 15 additions & 11 deletions devdoc/.vitepress/theme/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
import DefaultTheme from 'vitepress/theme'
import './custom.css'
// https://vitepress.dev/guide/custom-theme
import { h } from "vue";
import DefaultTheme from "vitepress/theme";
import RenderComponent from "@hpcc-js/markdown-it-plugins/vitepress/RenderComponent.vue";
import "@hpcc-js/markdown-it-plugins/vitepress/styles.ts";

export default {
...DefaultTheme,
extends: DefaultTheme,
Layout: () => {
return h(DefaultTheme.Layout, null, {
// https://vitepress.dev/guide/extending-default-theme#layout-slots
});
},
enhanceApp({ app }) {
app.component("RenderComponent", RenderComponent);
},

enhanceApp(ctx) {
// extend default theme custom behaviour.
DefaultTheme.enhanceApp(ctx)

// register your custom global components
// ctx.app.component('MyGlobalComponent' /* ... */)
}
}
};
Loading

0 comments on commit bfb0b9b

Please sign in to comment.