- Project website (https://datepollsystems.org)
- created with Docusaurus
npm install
npm start
This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.
npm build
This command generates static content into the build
directory and can be served using any static contents hosting service.
To add a new doc you have to add the file into the docs folder and make an entry in the sidebars.js for the navigation Available markdown features see https://v2.docusaurus.io/docs/markdown-features
To add a new Project following steps must be done
- create Project Page under
/src/pages/projects/projectName.tsx
with this code:import React from 'react'; import ProjectPage from '../../modules/Projects/ProjectPage' import {ProjectDefinition} from "../../modules/Projects/ProjectDefinition"; export const ProjectName: ProjectDefinition = {...} export default function index() { return <ProjectPage {...ProjectName} />; }
- add Project-definition to
PROJECTS
array in/src/modules/Projects/Projects.ts
- add Link to just created page in
docusaurus.config.js
toprojectsNav
array{to: '/projects/projectName', label: 'ProjectName'}
- create documentation folder
/docs/ProjectName/
and follow adding docs instructions
To add a new blogpost a file within the blog directory must be created (name should be in the format YYY-MMM-DD-blog-post-title.md
)
The only required field in the header is title
(other available headers see https://v2.docusaurus.io/docs/blog#header-options)
<!--truncate-->
can be used to define the content (anything above it) of the summary shown on the bloglist page