nicober1 / ofi-blog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OFI Blog

Build Status

OFI Blog

Styling

The theme/classic is used. It is build with infima.

New Documentation

Add or edit new docs in docs/. This will have effect to all different "Versions" since their versions are only simlinked.

Enable docs to a course

To enable specific docs to a course, either add manually a symlink, or call the bash script bin/enable.

E.g. to enable the contents of [docs/byod_basics] for the course 24i:

bin/enable byod_basics 24i

Disable docs from a course

To disable docs from a course, either remove the simlink manually, or call the bash script bin/disable:

E.g. to disable the contents of [docs/byod_basics] for the course 24i:

bin/disable byod_basics 24i

Installation

yarn install

Local Development

yarn start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Build

yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

Either

  • Setup github actions to deploy your page on each push to the main branch.
  • or setup a drone runner to build the project and deploy it to gh-pages.

Custom Domain

  • Add a CNAME File to the static directory
  • Disable CLoudflare "DNS Proxy" temporarly
  • Deploy
  • Let Github generate SSL certificates for you
  • Check "Enforce https:"
  • Re-Enable DNS Proxy on Cloudflare again.

Start Postgres on osx

postgres -D /usr/local/var/postgres

Ejected Theme Components

Make sure to check the compatibility after a docusaurus upgrade:

Component Swizzle
DocVersionBadge yarn run swizzle @docusaurus/theme-classic DocVersionBadge --eject --typescript
NavbarItem yarn run swizzle @docusaurus/theme-classic NavbarItem --eject --typescript
NotFound (safe) yarn run swizzle @docusaurus/theme-classic NotFound --eject --typescript

⚠️ If you change the baseUrl setting in docusaurus.config.js, then search for it in the project, to change all occurances!

About

License:GNU Affero General Public License v3.0


Languages

Language:HTML 83.2%Language:TypeScript 11.6%Language:Python 1.9%Language:JavaScript 1.7%Language:SCSS 1.4%Language:CSS 0.1%Language:Shell 0.1%