Skip to content

Commit

Permalink
Add social cards to the website
Browse files Browse the repository at this point in the history
This commit adds the `social` plugin which generates social cards
for every page. These are essentially PNG images which will be displayed
when the page is shared on social media platforms.

This is just the basic setup to get something going.

Signed-off-by: Dylan Reimerink <[email protected]>
  • Loading branch information
dylandreimerink committed Sep 23, 2024
1 parent d4c53bc commit 8966e5d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Apply deploy config
run: |
echo "" >> mkdocs.yml
echo "site_url: https://isovalent.github.io" >> mkdocs.yml
echo "site_url: https://docs.ebpf.io" >> mkdocs.yml
echo "" >> mkdocs.yml
echo "extra:" >> mkdocs.yml
echo " analytics:" >> mkdocs.yml
Expand Down
3 changes: 3 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ plugins:
token: !ENV ["GH_TOKEN"]
repository: isovalent/ebpf-docs
branch: master
- social:
cards_layout_options:
logo: docs/assets/image/logo.png

extra_css:
- stylesheets/extra.css
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
mkdocs >= 1.6.0, <= 1.7.0
mkdocs-material == 9.*
mkdocs-material[imaging]
mkdocs-literate-nav == 0.6.1
mkdocs-git-revision-date-localized-plugin >= 1.2.0, <= 1.3.0
mkdocs-git-committers-plugin-2 >= 2.3.0, <= 2.4.0
3 changes: 2 additions & 1 deletion tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ ARG GID=1000

COPY requirements.txt /root/requirements.txt
RUN apt update && \
apt install -y git aspell && \
apt install -y git aspell libcairo2-dev libfreetype6-dev libffi-dev \
libjpeg-dev libpng-dev libz-dev && \
pip install -r /root/requirements.txt && \
groupadd -g $GID docs || true && \
useradd -u $UID -g $GID -m -s /bin/bash docs || true
Expand Down

0 comments on commit 8966e5d

Please sign in to comment.