Skip to content

Commit fe44724

Browse files
committed
pull everying in site up a level, flattening the repo structure
1 parent 567a65a commit fe44724

File tree

1,357 files changed

+19570
-19381
lines changed

Some content is hidden

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

1,357 files changed

+19570
-19381
lines changed

.github/workflows/deploy.yaml

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,10 @@ jobs:
3131
cache: 'npm'
3232
cache-dependency-path: 'package-lock.json'
3333

34-
- name: Debug - Show directory structure
34+
- name: Install dependencies
3535
run: |
36-
echo "Current directory: $(pwd)"
37-
echo "Repository root contents:"
38-
ls -la
39-
echo "Site directory contents:"
40-
ls -la site/ || echo "Site directory not found"
41-
echo "Looking for package.json files:"
42-
find . -name "package.json" -type f
43-
44-
- name: Install root dependencies
45-
run: |
46-
echo "Installing root dependencies from $(pwd)"
47-
npm ci || (echo "Root npm ci failed, uploading logs" && exit 1)
48-
49-
- name: Install site dependencies
50-
run: |
51-
echo "Installing site dependencies..."
52-
npm run site:install || (echo "Site install failed" && exit 1)
36+
echo "Installing dependencies from $(pwd)"
37+
npm ci || (echo "npm ci failed, uploading logs" && exit 1)
5338
5439
- name: Build Docusaurus site
5540
env:
@@ -63,7 +48,7 @@ jobs:
6348
echo "Using DOCUSAURUS_BASE_URL: $DOCUSAURUS_BASE_URL"
6449
echo "Using DOCUSAURUS_URL: $DOCUSAURUS_URL"
6550
echo "Using IMAGES_PATH: $IMAGES_PATH"
66-
npm run site:build || (echo "Site build failed" && exit 1)
51+
npm run build || (echo "Site build failed" && exit 1)
6752
6853
- name: Upload npm logs on failure
6954
if: failure()
@@ -76,7 +61,7 @@ jobs:
7661
- name: Upload Build Artifact
7762
uses: actions/upload-pages-artifact@v3
7863
with:
79-
path: site/build
64+
path: build
8065

8166
deploy:
8267
needs: build

.gitignore

Lines changed: 26 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,36 @@
1-
# Build and Release Folders
2-
bin-debug/
3-
bin-release/
4-
[Oo]bj/
5-
[Bb]in/
1+
# Dependencies
2+
node_modules
63

7-
# Other files and folders
8-
.settings/
4+
# Production
5+
build
6+
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
910

10-
# Executables
11-
*.swf
12-
*.air
13-
*.ipa
14-
*.apk
11+
# Root index page is conditionally generated if docs is not at the root
12+
/src/pages/index.tsx
1513

16-
# Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties`
17-
# should NOT be excluded as they contain compiler settings and other important
18-
# information for Eclipse / Flash Builder.
14+
# Misc
1915
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
24+
25+
# IDE
2026
.idea/workspace.xml
2127
.idea/documentation.iml
2228
.idea/modules.xml
2329
.idea/vcs.xml
30+
.settings/
2431

25-
node_modules
26-
27-
# Site .gitignore so its picked up by prettier
28-
# Dependencies
29-
site/node_modules
30-
31-
# Production
32-
site/build
33-
34-
# Latest (/docs/) is a build time copy of the latest version
35-
site/docs
36-
37-
# Generated files
38-
site/.docusaurus
39-
site/.cache-loader
32+
# OS files
33+
Thumbs.db
4034

41-
# Misc
42-
site/.DS_Store
43-
site/.env.local
44-
site/.env.development.local
45-
site/.env.test.local
46-
site/.env.production.local
47-
48-
site/npm-debug.log*
49-
site/yarn-debug.log*
50-
site/yarn-error.log*
35+
# Old site directory (cleanup)
36+
site/

README.md

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,83 @@ This documentation site is open source!
1111
If you notice something out-of-place or have suggestions for improvement, please feel free to submit an issue and/or a pull request. Make sure to follow the relevant bug report and content/feature request templates.
1212

1313
For more information on contributing, follow the [contribution guide](CONTRIBUTING.md).
14+
15+
## 🚀 Quick Start
16+
17+
```bash
18+
# Install dependencies
19+
npm install
20+
21+
# Start development server
22+
npm start
23+
# Opens at http://localhost:3000
24+
25+
# Build for production
26+
npm run build
27+
28+
# Serve production build locally
29+
npm run serve
30+
```
31+
32+
## 📁 Directory Structure
33+
34+
```text
35+
├── docs/ # Main documentation content
36+
├── images/ # Images for documentation
37+
├── static/ # Static assets
38+
│ ├── img/ # Site images and logos
39+
│ └── js/ # JavaScript files
40+
├── src/ # React components and custom pages
41+
│ ├── css/ # Custom styles
42+
│ └── pages/ # Custom pages
43+
├── versioned_docs/ # Documentation for previous versions
44+
├── versioned_sidebars/ # Sidebar configurations for versions
45+
├── docusaurus.config.ts # Main Docusaurus configuration
46+
├── sidebars.ts # Sidebar navigation structure
47+
├── redirects.ts # URL redirects configuration
48+
└── versions.json # Version configuration
49+
```
50+
51+
## 🛠️ Development
52+
53+
### Running Locally
54+
55+
```bash
56+
# Start the development server with hot reload
57+
npm start
58+
59+
# Clear cache if you encounter issues
60+
npm run clear
61+
```
62+
63+
The development server runs at `http://localhost:3000` and automatically reloads when you make changes.
64+
65+
### Other Commands
66+
67+
```bash
68+
# Type checking
69+
npm run typecheck
70+
71+
# Format code
72+
npm run format
73+
74+
# Clean all generated files and caches
75+
npm run clear
76+
```
77+
78+
## 📋 Cutting a New Version
79+
80+
When releasing a new version of Harper documentation:
81+
82+
```bash
83+
# Cut a new version (e.g., 4.7)
84+
npm run version
85+
```
86+
87+
This will:
88+
89+
1. Copy current docs to versioned_docs/version-4.7
90+
2. Copy current sidebars to versioned_sidebars
91+
3. Update versions.json
92+
93+
After cutting a version, update `docusaurus.config.ts` to set the new `lastVersion`.

0 commit comments

Comments
 (0)