Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
fb672f4
initial reference section creation and configuration
Ethan-Arrowood Feb 19, 2026
78eca4b
v4 docs reference plan init
Ethan-Arrowood Feb 19, 2026
ad55dce
update plans
Ethan-Arrowood Feb 19, 2026
95752e6
create migration context dir
Ethan-Arrowood Feb 19, 2026
241f8cb
Configure build system for major-version-reorg branch
Ethan-Arrowood Feb 19, 2026
021d800
docs: migrate CLI section to v4 consolidated reference (#439)
Ethan-Arrowood Feb 23, 2026
af96a72
GraphQL Querying Migration (#440)
Ethan-Arrowood Feb 24, 2026
2c59970
Studio Migration (#441)
Ethan-Arrowood Feb 24, 2026
c6c99e5
Fastify Routes Migration (#442)
Ethan-Arrowood Feb 24, 2026
d3af5dd
format
Ethan-Arrowood Feb 24, 2026
c204af0
update map progress statusses
Ethan-Arrowood Feb 24, 2026
9bee99e
update workflow to do preview deploys for new files paths
Ethan-Arrowood Feb 24, 2026
dc64a23
Merge remote-tracking branch 'origin/main' into major-version-reorg
Ethan-Arrowood Feb 24, 2026
cd47bee
Environment Variables Migration (#444)
Ethan-Arrowood Feb 25, 2026
fa4d2f3
HTTP section migration (#446)
Ethan-Arrowood Feb 26, 2026
2d5d293
Static Files Migration (#445)
Ethan-Arrowood Mar 2, 2026
5271417
Logging Section Migration (#450)
Ethan-Arrowood Mar 4, 2026
5fa1767
Analytics Section Migration (#451)
Ethan-Arrowood Mar 10, 2026
e46a359
MQTT Section Migration (#449)
Ethan-Arrowood Mar 11, 2026
3758021
Security and Users & Roles Sections Migration (#452)
Ethan-Arrowood Mar 17, 2026
372eec3
update plan docs
Ethan-Arrowood Mar 17, 2026
77b2120
correct links
Ethan-Arrowood Mar 17, 2026
91181d8
clean up version annotations
Ethan-Arrowood Mar 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/pr-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
types: [opened, synchronize, reopened, closed]
# Temporarily disable the file filter so we get preview deploys for reference docs migration PRs
# paths:
# - 'reference/**'
# - 'reference_versioned_docs/**'
#. - 'reference_versioned_sidebars/**'
# - 'reference_versions.json'
# - 'docs/**'
# - 'fabric/**'
# - 'learn/**'
Expand Down
96 changes: 44 additions & 52 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ const baseUrl = process.env.DOCUSAURUS_BASE_URL || '/';
// Determine route base path for docs
// Can be set to '/docs/' if we need docs under a subdirectory
// Default is '/' to serve docs at the root
const routeBasePath = process.env.DOCUSAURUS_ROUTE_BASE_PATH || '/docs'; // matching the production URL structure since this will currently affect some relative links in the docs
const routeBasePath = process.env.DOCUSAURUS_ROUTE_BASE_PATH; // matching the production URL structure since this will currently affect some relative links in the docs

// URL can also be overridden if needed
const url = process.env.DOCUSAURUS_URL || 'https://docs.harperdb.io';
const url = process.env.DOCUSAURUS_URL || 'https://docs.harper.fast';

// Always log configuration at build time
console.log('Docusaurus URL config:', { url, baseUrl, routeBasePath });
Expand Down Expand Up @@ -55,9 +55,16 @@ const config: Config = {
organizationName: 'HarperFast', // Usually your GitHub org/user name.
projectName: 'documentation', // Usually your repo name.

onBrokenLinks: 'throw',
onBrokenLinks: 'warn',

plugins: [
[
'@docusaurus/plugin-content-pages',
{
id: 'default',
path: 'src/pages',
},
],
// Learn documentation
[
'@docusaurus/plugin-content-docs',
Expand All @@ -69,16 +76,16 @@ const config: Config = {
editUrl: 'https://github.com/HarperFast/documentation/blob/main/',
},
],
// Main documentation
// Reference documentation
[
'@docusaurus/plugin-content-docs',
{
id: 'default',
path: './docs',
sidebarPath: './sidebars.ts',
routeBasePath,
id: 'reference',
path: 'reference',
routeBasePath: 'reference',
sidebarPath: './sidebarsReference.ts',
editUrl: ({ versionDocsDirPath, docPath }) => {
// For versioned docs: versionDocsDirPath is like 'versioned_docs/version-4.6'
// For versioned docs: versionDocsDirPath is like 'versioned_docs/version-4'
// For current docs: versionDocsDirPath is 'docs'
if (versionDocsDirPath.startsWith('versioned_docs')) {
// Versioned docs are in versioned_docs/version-X.X/
Expand All @@ -88,21 +95,11 @@ const config: Config = {
return `https://github.com/HarperFast/documentation/blob/main/docs/${docPath}`;
}
},
lastVersion: '4.7',
lastVersion: 'current',
includeCurrentVersion: false,
versions: {
'4.7': {
// No banner for 4.7 as it's the latest stable version
banner: 'none',
},
'4.6': {
// No banner for 4.6 as it's still actively maintained
banner: 'none',
},
'4.5': {
// No banner for 4.5 as it's still actively maintained
banner: 'none',
},
current: { label: 'v5', path: 'v5' },
v4: { label: 'v4', path: 'v4', banner: 'none' },
},
// Converts npm commands in markdown code blocks to show npm/yarn/pnpm tabs
remarkPlugins: [[require('@docusaurus/remark-plugin-npm2yarn'), { sync: true }]],
Expand Down Expand Up @@ -218,14 +215,14 @@ const config: Config = {
},
],

// Redirects
[
'@docusaurus/plugin-client-redirects',
{
redirects: generateRedirects(routeBasePath),
createRedirects: (existingPath: string) => createRedirectsBase(existingPath, routeBasePath),
},
],
// // Redirects
// [
// '@docusaurus/plugin-client-redirects',
// {
// redirects: generateRedirects(routeBasePath),
// createRedirects: (existingPath: string) => createRedirectsBase(existingPath, routeBasePath),
// },
// ],

// Sitemap
[
Expand Down Expand Up @@ -272,22 +269,7 @@ const config: Config = {
// Use Algolia search in production when env vars are set, otherwise use local search
...(process.env.NODE_ENV === 'production' && process.env.ALGOLIA_APP_ID && process.env.ALGOLIA_SEARCH_KEY
? ['@docusaurus/theme-search-algolia']
: [
[
require.resolve('@easyops-cn/docusaurus-search-local'),
{
hashed: true,
language: ['en'],
indexDocs: true,
indexBlog: false,
indexPages: true,
docsRouteBasePath: routeBasePath,
highlightSearchTermsOnTargetPage: true,
searchResultLimits: 8,
searchBarPosition: 'right',
},
],
]),
: []),
'@docusaurus/theme-mermaid',
],

Expand Down Expand Up @@ -315,7 +297,7 @@ const config: Config = {
alt: 'Harper Logo',
src: 'img/HarperPrimaryBlk.svg',
srcDark: 'img/HarperPrimaryWht.svg',
href: 'https://www.harper.fast/',
// href: 'https://www.harper.fast/',
},
items: [
{
Expand All @@ -327,9 +309,10 @@ const config: Config = {
},
{
type: 'docSidebar',
sidebarId: 'docsSidebar',
sidebarId: 'referenceSidebar',
docsPluginId: 'reference',
position: 'left',
label: 'Documentation',
label: 'Reference',
},
{
// Link directly to v4 (current version) instead of overview page
Expand All @@ -350,6 +333,7 @@ const config: Config = {
type: 'docsVersionDropdown',
position: 'right',
dropdownActiveClassDisabled: true,
docsPluginId: 'reference',
},
{
href: 'https://github.com/HarperFast/documentation',
Expand All @@ -366,11 +350,19 @@ const config: Config = {
items: [
{
label: 'Learn',
to: `/learn`,
to: '/learn',
},
{
label: 'Reference',
to: '/reference',
},
{
label: 'Release Notes',
to: '/release-notes/v4-tucker',
},
{
label: 'Administration',
to: `${routeBasePath}/administration`,
label: 'Fabric',
to: '/fabric',
},
],
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Link Placeholders for Analytics Section

## reference_versioned_docs/version-v4/analytics/overview.md

- ~~Line 99: `[server.recordAnalytics()](TODO:reference_versioned_docs/version-v4/http/api.md)`~~ **RESOLVED** → `../http/api.md#serverrecordanalyticsvalue-metric-path-method-type`
- ~~Line 103: `[HTTP API](TODO:reference_versioned_docs/version-v4/http/api.md)`~~ **RESOLVED** → `../http/api.md`
- ~~Line 105: `[Logging Configuration](TODO:reference_versioned_docs/version-v4/logging/configuration.md)`~~ **RESOLVED** → `../logging/configuration.md`
- ~~Line 110: `[HTTP API](TODO:reference_versioned_docs/version-v4/http/api.md)`~~ **RESOLVED** → `../http/api.md`
- ~~Line 111: `[Logging Configuration](TODO:reference_versioned_docs/version-v4/logging/configuration.md)`~~ **RESOLVED** → `../logging/configuration.md`

- Line 106 + 112: `[Configuration Overview](TODO:reference_versioned_docs/version-v4/configuration/overview.md)`
- Context: analytics.aggregatePeriod configuration + related section
- Target should be: Configuration section overview page
- **Status**: PENDING (Configuration section migration)

## reference_versioned_docs/version-v4/analytics/operations.md

- Line 56: `[search_by_conditions](TODO:reference_versioned_docs/version-v4/operations-api/operations.md)`
- Context: Note that `conditions` parameter uses the same format as search_by_conditions
- Target should be: Operations API operations page
- **Status**: PENDING (Operations API section migration)

- Line 77: `[Operations API Overview](TODO:reference_versioned_docs/version-v4/operations-api/overview.md)`
- Context: Related section at bottom of file
- Target should be: Operations API section overview page
- **Status**: PENDING (Operations API section migration)
Loading