Skip to content

Commit deacfb0

Browse files
authored
Merge pull request #295 from HarperDB/next-for-dev
enable 'next' docs for local dev
2 parents 11281dd + 236d65d commit deacfb0

38 files changed

+22
-233
lines changed

.github/workflows/deploy.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,11 @@ jobs:
5353
DOCUSAURUS_ROUTE_BASE_PATH: ${{ vars.DOCUSAURUS_ROUTE_BASE_PATH }}
5454
DOCUSAURUS_BASE_URL: ${{ vars.DOCUSAURUS_BASE_URL }}
5555
DOCUSAURUS_URL: ${{ vars.DOCUSAURUS_URL }}
56-
IMAGES_PATH: ${{ vars.IMAGES_PATH }}
5756
run: |
5857
echo "Building Docusaurus site..."
5958
echo "Using DOCUSAURUS_ROUTE_BASE_PATH: $DOCUSAURUS_ROUTE_BASE_PATH"
6059
echo "Using DOCUSAURUS_BASE_URL: $DOCUSAURUS_BASE_URL"
6160
echo "Using DOCUSAURUS_URL: $DOCUSAURUS_URL"
62-
echo "Using IMAGES_PATH: $IMAGES_PATH"
6361
npm run build || (echo "Site build failed" && exit 1)
6462
6563
- name: Upload npm logs on failure

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ npm run serve
3333

3434
```text
3535
├── docs/ # Main documentation content
36-
├── images/ # Images for documentation
3736
├── static/ # Static assets
38-
│ ├── img/ # Site images and logos
37+
│ ├── img/ # Site images and logos (versioned)
3938
│ └── js/ # JavaScript files
4039
├── src/ # React components and custom pages
4140
│ ├── css/ # Custom styles

docs/custom-functions/create-project.md

Lines changed: 0 additions & 48 deletions
This file was deleted.

docs/custom-functions/define-helpers.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/custom-functions/host-static.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

docs/custom-functions/index.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

docs/custom-functions/requirements-definitions.md

Lines changed: 0 additions & 79 deletions
This file was deleted.

docs/custom-functions/restarting-server.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

docs/custom-functions/templates.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/developers/applications/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ class BreedSource extends Resource {
209209
Breed.sourcedFrom(BreedSource, { expiration: 3600 });
210210
```
211211
212-
The [caching documentation](caching) provides much more information on how to use Harper's powerful caching capabilities and set up data sources.
212+
The [caching documentation](applications/caching) provides much more information on how to use Harper's powerful caching capabilities and set up data sources.
213213
214-
Harper provides a powerful JavaScript API with significant capabilities that go well beyond a "getting started" guide. See our documentation for more information on using the [`globals`](../../reference/globals) and the [Resource interface](../../reference/resource).
214+
Harper provides a powerful JavaScript API with significant capabilities that go well beyond a "getting started" guide. See our documentation for more information on using the [`globals`](../../reference/globals) and the [Resource interface](../../reference/resources).
215215
216216
## Configuring Applications/Components
217217
@@ -221,7 +221,7 @@ For complete information of configuring applications, refer to the [Component Co
221221
222222
Exporting resource will generate full RESTful endpoints. But, you may prefer to define endpoints through a framework. Harper includes a resource plugin for defining routes with the Fastify web framework. Fastify is a full-featured framework with many plugins, that provides sophisticated route definition capabilities.
223223
224-
By default, applications are configured to load any modules in the `routes` directory (matching `routes/*.js`) with Fastify's autoloader, which will allow these modules to export a function to define fastify routes. See the [defining routes documentation](define-routes) for more information on how to create Fastify routes.
224+
By default, applications are configured to load any modules in the `routes` directory (matching `routes/*.js`) with Fastify's autoloader, which will allow these modules to export a function to define fastify routes. See the [defining routes documentation](applications/define-routes) for more information on how to create Fastify routes.
225225
226226
However, Fastify is not as fast as Harper's RESTful endpoints (about 10%-20% slower/more-overhead), nor does it automate the generation of a full uniform interface with correct RESTful header interactions (for caching control), so generally the Harper's REST interface is recommended for optimum performance and ease of use.
227227

0 commit comments

Comments
 (0)