Skip to content

icloudal/wikicode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Deploy This MkDocs Site

This project uses MkDocs with the Material for MkDocs theme to generate a beautiful, responsive documentation site.

Follow these steps to run the site locally and deploy it to GitHub Pages.

✅ Requirements

Make sure you have the following installed:

Install MkDocs and the Material theme:

pip install mkdocs mkdocs-material

Serve Locally

mkdocs serve -> http://127.0.0.1:8000 mkdocs build -> generate static files mkdocs gh-deploy - deploy the site to GitHub Pages

Deployment to GitHub Pages (CI/CD)

You can deploy your site automatically using GitHub Actions.
Create a workflow file at .github/workflows/ci.yml with the following content:

name: Deploy MkDocs

on:
  push:
    branches:
      - main
      - master

permissions:
  contents: write

jobs:
  deploy:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4

      - name: Configure Git Credentials
        run: |
          git config user.name github-actions[bot]
          git config user.email 41898282+github-actions[bot]@users.noreply.github.com

      - uses: actions/setup-python@v5
        with:
          python-version: 3.x

      - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV

      - uses: actions/cache@v4
        with:
          key: mkdocs-material-${{ env.cache_id }}
          path: .cache
          restore-keys: |
            mkdocs-material-

      - run: pip install mkdocs-material

      - run: mkdocs gh-deploy --force

About

My personal wiki created with MkDocs

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •