This repository contains the source code for the ABCD Software Documentation website, built using Docusaurus, a modern static website generator.
URL: https://ABCD-DEVCOM.github.io/
To edit the documentation and preview your changes locally, follow these steps:
You need Node.js (version 18 or higher) installed on your machine.
Clone the repository and install the dependencies:
# Clone the repository
git clone https://github.com/ABCD-DEVCOM/ABCD-DEVCOM.github.io.git
# Enter the directory
cd ABCD-DEVCOM.github.io
# Install dependencies
npm install
Start the local server. This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
npm start
# or
npx docusaurus start
Open http://localhost:3000 in your browser.
We use Markdown (.md) files located in the /docs folder. Here are the basic rules for creating or editing pages in this project.
Every documentation file must start with a Frontmatter block at the very top. This metadata tells Docusaurus how to handle the page.
---
id: my-page-id
title: My Page Title
sidebar_label: Short Menu Label
sidebar_position: 2
---
- id: Unique identifier for the page (optional, filename is used by default).
- title: The
<h1>title of the page. - sidebar_label: The text that appears in the left navigation menu.
- sidebar_position: The numeric order in the menu.
Use Docusaurus-specific syntax to highlight important information:
:::note
This is a standard note.
:::
:::tip
Useful advice or shortcuts.
:::
:::warning
Be careful! This action might have consequences.
:::
:::danger
Critical errors or data loss warnings.
:::
- Images: Place images in the
/static/imgfolder. Reference them like this: - Internal Links: Link to other markdown files directly:
[Link text](./other-folder/page-name.md)
We welcome contributions from the community! To contribute:
- Fork this repository to your own GitHub account.
- Clone your fork locally.
- Create a new branch for your feature or fix:
git checkout -b feature/my-new-content
- Make your changes and commit them:
git commit -m "Docs: Add guide for Z39.50"
- Push to your fork:
git push origin feature/my-new-content
- Open a Pull Request (PR) on the main repository. Describe what you changed and why.
These commands are for building the static files for production.
Generates static content into the build directory.
npm run build
To deploy the documentation manually:
# Using SSH
USE_SSH=true npm run deploy
# Or specifying the user
GIT_USER=<Your GitHub username> npm run deploy