Skip to content

Commit

Permalink
Merge pull request #19233 from GordonSmith/HPCC-32868-VITEPRESS_VERSI…
Browse files Browse the repository at this point in the history
…ON_BUMP

HPCC-32868 Add ECL language support to VitePress
  • Loading branch information
GordonSmith committed Oct 24, 2024
2 parents 3715af2 + bfb0b9b commit bf0ac87
Show file tree
Hide file tree
Showing 6 changed files with 4,839 additions and 919 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

- run: npm ci
- run: npm run build
Expand Down
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 bf0ac87

Please sign in to comment.