Skip to content

Commit 9f8d77b

Browse files
committed
initial
0 parents  commit 9f8d77b

File tree

7,163 files changed

+762721
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

7,163 files changed

+762721
-0
lines changed

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Dependencies
2+
/node_modules
3+
4+
# Production
5+
/build
6+
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
10+
11+
# Misc
12+
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*
21+
22+
lerna-debug.log
23+
24+
/data
25+
/ref
26+
/classes

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Website
2+
3+
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
4+
5+
### Installation
6+
7+
```
8+
$ yarn
9+
```
10+
11+
### Local Development
12+
13+
```
14+
$ yarn start
15+
```
16+
17+
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
18+
19+
### Build
20+
21+
```
22+
$ yarn build
23+
```
24+
25+
This command generates static content into the `build` directory and can be served using any static contents hosting service.
26+
27+
### Deployment
28+
29+
Using SSH:
30+
31+
```
32+
$ USE_SSH=true yarn deploy
33+
```
34+
35+
Not using SSH:
36+
37+
```
38+
$ GIT_USER=<Your GitHub username> yarn deploy
39+
```
40+
41+
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.

compose.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
services:
2+
iris:
3+
image: containers.intersystems.com/intersystems/iris-community:latest-cd
4+
ports:
5+
- 52773
6+
command:
7+
- -a
8+
- iris session iris -U%SYS '##class(Security.Users).UnExpireUserPasswords("*")'
9+
volumes:
10+
- ./data:/home/irisowner/data
11+

docs/intro.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
sidebar_position: 1
3+
---
4+
5+
# Tutorial Intro
6+
7+
Let's discover **Docusaurus in less than 5 minutes**.
8+
9+
## Getting Started
10+
11+
Get started by **creating a new site**.
12+
13+
Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new)**.
14+
15+
### What you'll need
16+
17+
- [Node.js](https://nodejs.org/en/download/) version 18.0 or above:
18+
- When installing Node.js, you are recommended to check all checkboxes related to dependencies.
19+
20+
## Generate a new site
21+
22+
Generate a new Docusaurus site using the **classic template**.
23+
24+
The classic template will automatically be added to your project after you run the command:
25+
26+
```bash
27+
npm init docusaurus@latest my-website classic
28+
```
29+
30+
You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor.
31+
32+
The command also installs all necessary dependencies you need to run Docusaurus.
33+
34+
## Start your site
35+
36+
Run the development server:
37+
38+
```bash
39+
cd my-website
40+
npm run start
41+
```
42+
43+
The `cd` command changes the directory you're working with. In order to work with your newly created Docusaurus site, you'll need to navigate the terminal there.
44+
45+
The `npm run start` command builds your website locally and serves it through a development server, ready for you to view at http://localhost:3000/.
46+
47+
Open `docs/intro.md` (this page) and edit some lines: the site **reloads automatically** and displays your changes.

docusaurus.config.ts

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
import * as path from "path";
2+
import { themes as prismThemes } from "prism-react-renderer";
3+
import type { Config } from "@docusaurus/types";
4+
import type * as Preset from "@docusaurus/preset-classic";
5+
import sidebars from "./sidebars";
6+
import versions from "./versions.json";
7+
8+
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
9+
10+
const config: Config = {
11+
title: "InterSystems Documentation",
12+
tagline: "",
13+
favicon: "img/favicon.ico",
14+
15+
url: "https://caretdev.github.io",
16+
// baseUrl: "/docs-intersystems/",
17+
baseUrl: "/",
18+
19+
organizationName: "caretdev",
20+
projectName: "docs-intersystems",
21+
22+
onBrokenLinks: "throw",
23+
onBrokenMarkdownLinks: "warn",
24+
25+
i18n: {
26+
defaultLocale: "en",
27+
locales: ["en"],
28+
},
29+
30+
plugins: [
31+
[
32+
"cls-loader",
33+
{
34+
projectRoot: path.join(__dirname, "ref"),
35+
},
36+
],
37+
],
38+
39+
presets: [
40+
// ["classic", {}],
41+
[
42+
'@docusaurus/preset-classic',
43+
{
44+
docs: {
45+
sidebarPath: require.resolve('./sidebars.js'),
46+
},
47+
theme: {
48+
customCss: require.resolve('./src/css/custom.css'),
49+
},
50+
},
51+
],
52+
],
53+
markdown: {
54+
parseFrontMatter: async (params) => {
55+
// Reuse the default parser
56+
const result = await params.defaultParseFrontMatter(params);
57+
58+
result.frontMatter.pagination_prev = null;
59+
result.frontMatter.pagination_next = null;
60+
61+
return result;
62+
},
63+
},
64+
65+
themeConfig: {
66+
// Replace with your project's social card
67+
image: "img/docusaurus-social-card.jpg",
68+
navbar: {
69+
title: "InterSystems Documentation",
70+
logo: {
71+
alt: "InterSystems Docs Logo",
72+
src: "img/intersystems-docs.svg",
73+
},
74+
items: [
75+
{
76+
type: 'dropdown',
77+
to: 'ref',
78+
label: 'Class Reference',
79+
position: 'left',
80+
items: [
81+
...versions.map((version, i) => ({
82+
label: version,
83+
to: i === 0 ? 'ref' : `ref/${version}`,
84+
})),
85+
],
86+
},
87+
{
88+
href: "https://github.com/caretdev/docs-intersystems",
89+
label: "GitHub",
90+
position: "right",
91+
},
92+
],
93+
},
94+
prism: {
95+
theme: prismThemes.github,
96+
darkTheme: prismThemes.dracula,
97+
},
98+
} satisfies Preset.ThemeConfig,
99+
};
100+
101+
export default config;

lerna.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"version": "3.6.3",
3+
"npmClient": "yarn",
4+
"useWorkspaces": true,
5+
"useNx": false
6+
}

0 commit comments

Comments
 (0)