Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterCalvin committed Feb 16, 2025
1 parent 0b1cee1 commit 8fd0e55
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ jobs:
# Get current year
YEAR=$(date +'%Y')
# Convert username to lowercase
USERNAME=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')
# Process the entire mkdocs.yml file
cat mkdocs.yml | \
sed "s/{{ username }}/${{ github.repository_owner }}/g" | \
sed "s/{{ username }}/${USERNAME}/g" | \
sed "s/{{ repo_name }}/${{ github.event.repository.name }}/g" | \
sed "s/{{ year }}/${YEAR}/g" \
> mkdocs.generated.yml
Expand Down
50 changes: 46 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,48 @@
# Plex Guide Template
# Plex Documentation Guide

Built with Material for MKDocs, deployed and hosted via Github Pages. TODO: Fill out README with links to useful videos, add links to MKDocs plugins, other misc things
<br>
A standardized documentation template for your Plex server, built with Material for MkDocs and deployed via GitHub Pages. This template includes pre-built pages covering common Plex topics like streaming quality, content requests, transcoding, and more.

https://squidfunk.github.io/mkdocs-material/publishing-your-site/#github-pages
## 🚀 Getting Started

1. Fork this repository to your own GitHub account
2. Configure GitHub Pages:
- Go to Settings > Pages
- Set "Source" to "Deploy from a branch"
- Select "gh-pages" branch and "/" (root) folder
- Click Save

Your site will be available at `https://yourusername.github.io/mkdocs-plex-guide-template`

The template will automatically use your GitHub username and repository name throughout the site. You can see this in action at my demo site: https://mistercalvin.github.io/mkdocs-plex-guide-template

## 📝 Customization

### Basic Configuration
The following values are automatically set via environment variables:
- `username` - Your GitHub username (lowercase)
- `repo_name` - Repository name
- `year` - Current year

### Content Customization
Key files to modify:
- `docs/*.md` - Documentation pages
- `docs/stylesheets/extra.css` - [Custom admonitions](https://squidfunk.github.io/mkdocs-material/reference/admonitions/#custom-admonitions)
- `docs/assets/images/` - Images and video

### Default Values
You can customize default values for:
- Request URL: `request.example.com`
- Domain name: `example.com`

Edit these in [`main.py`](main.py) in the project root. These values are used throughout the rendered markdown pages.

## 📚 Resources

### Documentation
- [Material for MkDocs Customization](https://squidfunk.github.io/mkdocs-material/customization/)
- [Publishing Your Site](https://squidfunk.github.io/mkdocs-material/publishing-your-site/#github-pages)
- [MkDocs Plugins Catalog](https://github.com/mkdocs/catalog)

### Video Tutorials
- [Creating Documentation with MkDocs Material Theme](https://www.youtube.com/watch?v=Q-YA_dA8C20) - James Willett
- [Hosting MkDocs on Cloudflare Pages](https://www.youtube.com/watch?v=7-HhLascLuM) - Techdox

0 comments on commit 8fd0e55

Please sign in to comment.