Skip to content

Commit

Permalink
Adiciona metadados do OpenGraph no head do html
Browse files Browse the repository at this point in the history
  • Loading branch information
heitorPB committed May 3, 2023
1 parent 87cbfb9 commit 439c91a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ sphinx>=4.2.0
sphinxcontrib-spelling>=4.2.1
# Fixed version on sphinx-rtd-theme, since >=1.0.0 is fairly new and have some issues.
# See: https://github.com/grupy-sanca/curso-python/pull/108#issuecomment-950395761 for details
sphinx-rtd-theme==0.5.2
sphinx-rtd-theme==0.5.2
sphinxext-opengraph==0.8.2
6 changes: 6 additions & 0 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
'sphinx.ext.todo',
'sphinx.ext.mathjax',
'sphinx.ext.doctest',
'sphinxext.opengraph',
'sphinxcontrib.spelling'
]

Expand Down Expand Up @@ -71,6 +72,11 @@
# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = True

# OpenGraph metadata (see https://github.com/wpilibsuite/sphinxext-opengraph#options)
ogp_site_name = project + ' | ' + author
ogp_site_url = 'https://curso.grupysanca.com.br/pt/latest/'
ogp_image = ogp_site_url + '_images/caipyras01.jpg'

# spell checker stuff
spelling_lang = language
spelling_show_suggestions = True
Expand Down

0 comments on commit 439c91a

Please sign in to comment.