Skip to content

Commit

Permalink
Try using env in mkdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterCalvin committed Feb 16, 2025
1 parent 1bb2b87 commit 6cea624
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 15 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ jobs:
env:
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
GITHUB_REPOSITORY: ${{ github.repository }}
CURRENT_YEAR: $(date +'%Y')
run: mkdocs gh-deploy --force
2 changes: 1 addition & 1 deletion docs/faq/content-issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ If you encounter any problems with content (such as distorted video, incorrect m

## Using Overseerr (Preferred Method)

1. Visit [request.mydomain.com](https://request.mydomain.com)
1. Visit [{{ request_url }}](https://{{ request_url }})
2. Find the problematic Movie or TV Show
3. Click the yellow exclamation point icon in the top right
4. Enter the details of the issue
Expand Down
4 changes: 2 additions & 2 deletions docs/faq/missing-requests.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# I requested something an hour ago but it hasn't shown up yet. Why?

When requesting content at [request.sbotnas.io](https://request.sbotnas.io), you'll see three important dates:
When requesting content at [{{ request_url }}](https://{{ request_url }}), you'll see three important dates:

![Overseerr Release Dates](../assets/images/overseerr-release-dates.webp){ width="320" }
/// caption
Release dates within request.sbotnas.io
Release dates within {{ request_url }}
///

1. Theatrical Release - When it hits theaters
Expand Down
5 changes: 2 additions & 3 deletions docs/unsubscribe-from-plex-newsletter.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ New Plex accounts are automatically subscribed to Plex's company newsletter. Thi
## My Weekly Newsletter
I send out a separate, personal newsletter every Friday at 5:00 PM. You can identify it by:

- Email address sending this newsletter will be `[email protected]`
- Links to newsletter.plex.mydomain.com
- Email address sending this newsletter will be `noreply@{{ domain }}.com`
- The newsletter itself will have a logo with the name of my Plex server

If you'd like to unsubscribe from my newsletter, please contact me privately.

!!! example "newsletter.plex.mydomain.com"
!!! example ""

![Example](assets/images/custom-newsletter.webp)
2 changes: 1 addition & 1 deletion docs/useful-links.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

[plxplainers.xyz](https://www.plxplainers.xyz/)<br>
[mediaclients.wiki/Plex](https://mediaclients.wiki/Plex)<br>
[request.mydomain.com](https://request.mydomain.com/)<br>
[{{ request_url }}](https://{{ request_url }})<br>
[zombo.com](https://www.zombo.com/)
20 changes: 12 additions & 8 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
site_name: "{{ username }}.github.io"
site_url: "https://{{ username }}.github.io"
site_name: !ENV [GITHUB_REPOSITORY_OWNER, 'Ghost'] + '.github.io'
site_url: 'https://' + !ENV [GITHUB_REPOSITORY_OWNER, 'Ghost'] + '.github.io'
theme:
name: material
logo: assets/images/plex-logo.webp
Expand Down Expand Up @@ -69,9 +69,13 @@ plugins:
- mkdocs-video
- git-revision-date-localized
- git-committers:
repository: "{{ username }}/{{ repo_name }}"
repository: !ENV [GITHUB_REPOSITORY, 'Ghost/repo']
branch: main
- macros
- macros:
variables:
username: !ENV [GITHUB_REPOSITORY_OWNER, 'Ghost']
request_url: 'request.example.com'
domain: 'example.com'

markdown_extensions:
- toc:
Expand All @@ -93,19 +97,19 @@ markdown_extensions:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg

copyright: "Copyright &copy; {{ git.date.year }} {{ username }}"
copyright: 'Copyright © ' + !ENV [CURRENT_YEAR, '2025'] + ' ' + !ENV [GITHUB_REPOSITORY_OWNER, 'Ghost']

extra_css:
- stylesheets/extra.css

extra:
social:
- icon: fontawesome/brands/github
link: "https://github.com/{{ config.extra.site.username }}"
name: "{{ config.extra.site.username }} @ Github"
link: 'https://github.com/' + !ENV [GITHUB_REPOSITORY_OWNER, 'Ghost']
name: !ENV [GITHUB_REPOSITORY_OWNER, 'Ghost'] + ' @ Github'
- icon: fontawesome/brands/discord
link: https://discord.com
name: Discord Channel
- icon: fontawesome/solid/globe
link: "https://{{ config.extra.site.username }}.github.io"
link: 'https://' + !ENV [GITHUB_REPOSITORY_OWNER, 'Ghost'] + '.github.io'
name: Personal Website

0 comments on commit 6cea624

Please sign in to comment.