Skip to content

Commit

Permalink
ogpを独自実装から、sphinxext-opengraphに変更
Browse files Browse the repository at this point in the history
  • Loading branch information
shimizukawa authored May 25, 2022
1 parent d00ef23 commit 231e7de
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 116 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
sphinx==4.*
sphinxext-opengraph==0.6.3
17 changes: 12 additions & 5 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
extensions = [
'sphinx.ext.todo',
'support',
'ogtag',
'sphinxext.opengraph',
]
templates_path = ['_templates']
language = 'ja'
Expand All @@ -25,8 +25,15 @@

# ogp/twitter card

og_site_url = 'https://jisou-programmer.beproud.jp/'
og_twitter_site = '@beproud_jp'
ogp_site_url = 'https://jisou-programmer.beproud.jp/'
ogp_site_name = project
ogp_image = 'https://jisou-programmer.beproud.jp/_static/cover.jpg'
ogp_image_alt = '自走プログラマー(2020年, 技術評論社)'
ogp_type = 'article'
ogp_custom_meta_tags = [
'<meta name="twitter:card" content="summary" />',
'<meta name="twitter:site" content="@beproud_jp" />',
]

# output: html

Expand Down Expand Up @@ -67,10 +74,10 @@
{0.5em} % sep
{\vspace{3pt}\huge} % before-code
[{\vspace{2pt}\titlerule[2pt]}] % after-code
\setcounter{secnumdepth}{2}
\setcounter{tocdepth}{2}
\usepackage{hyperref}
\usepackage{pxjahyper}
Expand Down
111 changes: 0 additions & 111 deletions source/ext/ogtag.py

This file was deleted.

0 comments on commit 231e7de

Please sign in to comment.