Skip to content

Commit

Permalink
Alterando o css do mkdocs
Browse files Browse the repository at this point in the history
Foi alterado o tamanho do ícone e alguns elementos visuais do header através do extra.css
  • Loading branch information
Gxaite committed Apr 24, 2024
1 parent 230dcb9 commit fa5ac72
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
venv
webscrapy
28 changes: 28 additions & 0 deletions conversor_pdf_json/conversor_pdf_json.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
from urllib.request import Request, urlopen
from PyPDF2 import PdfFileReader
import io

# Url aleatória somente para teste
url = ''

# Chamando funções para extrair o pdf
remote_file = urlopen(Request(url)).read()
memory_file = io.BytesIO(remote_file)
pdf = PdfFileReader(memory_file)

# Gerando arquivo .json sem baixa o pdf no seu computador
with open('amem2.json', 'w', encoding="utf-8") as d:
for page_num in range(pdf.numPages):
print('page: {0}'.format(page_num+1))
pageObj = pdf.getPage(page_num)

try:
json = pageObj.extractText()
print(''.center(100,'-'))
except:
pass
else:
d.write('page{0}\n0'.format(page_num+1))
d.write(''.center(100, '-'))
d.write(json)
d.close()
15 changes: 15 additions & 0 deletions docs/assets/stylesheets/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

/* logo */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
height: 3rem;
width: 3rem;
}
.md-header__button.md-logo {
margin-top: 1;
margin-bottom: 0;
padding-top: 0;
padding-bottom: 0;
}

.md-tabs__link {color: black;}
4 changes: 2 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
site_name: Squad 07
site_name: MINAS DE CULTURA
extra_css:
- assets/stylesheets/extra.css

theme:
favicon: assets/images/favicon.png
logo: assets/images/favicon.png
logo: assets/images/logo_branca.png
name: material
features:
- navigation.tabs
Expand Down

0 comments on commit fa5ac72

Please sign in to comment.