Skip to content

Commit 7678fb4

Browse files
committed
wip
1 parent 76842ca commit 7678fb4

File tree

12 files changed

+18308
-8
lines changed

12 files changed

+18308
-8
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ results.log
66

77
.release_tool_cache/
88
__pycache__/
9+
node_modules
10+
.docusaurus

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"ms-python.python",
4+
"ms-azuretools.vscode-docker",
5+
"tamasfe.even-better-toml"
6+
]
7+
}

.vscode/settings.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
3+
"python.formatting.provider": "black",
4+
"editor.formatOnSave": true,
5+
"files.exclude": {
6+
"**/.git": true,
7+
"**/.DS_Store": true,
8+
"**/__pycache__": true,
9+
"**/*.pyc": true
10+
}
11+
}

.vscode/tasks.json

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,62 @@
11
{
22
"version": "2.0.0",
33
"tasks": [
4+
// --- Release Tool (Docker) ---
45
{
5-
"label": "Docker: Build Image",
6+
"label": "Tool: Build Docker Image",
67
"type": "shell",
78
"command": "docker build -t release-tool:local .",
89
"group": {
910
"kind": "build",
1011
"isDefault": true
1112
},
13+
"presentation": {
14+
"reveal": "always",
15+
"panel": "shared"
16+
},
17+
"problemMatcher": []
18+
},
19+
// --- Release Tool (Python) ---
20+
{
21+
"label": "Tool: Run Tests",
22+
"type": "shell",
23+
"command": "poetry run pytest",
24+
"group": "test",
25+
"presentation": {
26+
"reveal": "always"
27+
}
28+
},
29+
// --- Release Tool (Docusaurus) ---
30+
{
31+
"label": "Docs: Start Server",
32+
"type": "shell",
33+
"command": "cd docs && npm install && npm start",
34+
"isBackground": true,
35+
"problemMatcher": {
36+
"owner": "typescript",
37+
"pattern": "$tsc",
38+
"background": {
39+
"activeOnStart": true,
40+
"beginsPattern": "Compiling...",
41+
"endsPattern": "Client compiled successfully"
42+
}
43+
},
44+
"presentation": {
45+
"group": "docs",
46+
"reveal": "always"
47+
}
48+
},
49+
{
50+
"label": "Docs: Build Static Site",
51+
"type": "shell",
52+
"command": "cd docs && npm install && npm run build",
53+
"group": "build"
54+
},
55+
// --- CI/CD ---
56+
{
57+
"label": "CI: Run Tests (act)",
58+
"type": "shell",
59+
"command": "act -j test --container-architecture linux/amd64",
1260
"problemMatcher": []
1361
}
1462
]

docs/docusaurus.config.js

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
// @ts-check
2+
// Note: type annotations allow type checking and IDEs autocompletion
3+
4+
const { themes } = require('prism-react-renderer');
5+
const lightCodeTheme = themes.github;
6+
const darkCodeTheme = themes.dracula;
7+
8+
/** @type {import('@docusaurus/types').Config} */
9+
const config = {
10+
title: 'Release Tool',
11+
tagline: 'Semantic Versioning & Release Management',
12+
url: 'https://sequentech.github.io',
13+
baseUrl: '/release-tool/',
14+
onBrokenLinks: 'throw',
15+
onBrokenMarkdownLinks: 'warn',
16+
favicon: 'img/favicon.ico',
17+
organizationName: 'sequentech',
18+
projectName: 'release-tool',
19+
20+
presets: [
21+
[
22+
'classic',
23+
/** @type {import('@docusaurus/preset-classic').Options} */
24+
({
25+
docs: {
26+
path: '.',
27+
sidebarPath: require.resolve('./sidebars.js'),
28+
editUrl: 'https://github.com/sequentech/release-tool/tree/main/docs/',
29+
exclude: ['**/node_modules/**'],
30+
},
31+
theme: {
32+
customCss: require.resolve('./src/css/custom.css'),
33+
},
34+
}),
35+
],
36+
],
37+
38+
themeConfig:
39+
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
40+
({
41+
colorMode: {
42+
defaultMode: 'light',
43+
disableSwitch: false,
44+
respectPrefersColorScheme: true,
45+
},
46+
navbar: {
47+
title: 'Release Tool',
48+
items: [
49+
{
50+
type: 'doc',
51+
docId: 'intro',
52+
position: 'left',
53+
label: 'Docs',
54+
},
55+
{
56+
href: 'https://github.com/sequentech/release-tool',
57+
label: 'GitHub',
58+
position: 'right',
59+
},
60+
],
61+
},
62+
footer: {
63+
style: 'dark',
64+
links: [
65+
{
66+
title: 'Docs',
67+
items: [
68+
{
69+
label: 'Introduction',
70+
to: '/docs/intro',
71+
},
72+
],
73+
},
74+
],
75+
copyright: `Copyright © ${new Date().getFullYear()} Sequent Tech Inc. Built with Docusaurus.`,
76+
},
77+
prism: {
78+
theme: lightCodeTheme,
79+
darkTheme: darkCodeTheme,
80+
},
81+
}),
82+
};
83+
84+
module.exports = config;

0 commit comments

Comments
 (0)