Skip to content

Commit

Permalink
ci: add workflow file.
Browse files Browse the repository at this point in the history
  • Loading branch information
FabricioDeQueiroz committed Apr 12, 2024
1 parent 3be71ba commit 48344cb
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 73 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: ci
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache
- run: pip install mkdocs-material
- run: pip install pillow cairosvg
- run: mkdocs gh-deploy --force
70 changes: 13 additions & 57 deletions docs/page-two.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,60 +4,16 @@

Página dois, tal tal tal.

## Título

Página dois, tal tal tal.
## Título

Página dois, tal tal tal.
## Título

Página dois, tal tal tal.
## Título

Página dois, tal tal tal.
## Título

Página dois, tal tal tal.
## Título

Página dois, tal tal tal.
## Título

Página dois, tal tal tal.
## Título

Página dois, tal tal tal.
## Título

Página dois, tal tal tal.
## Título

Página dois, tal tal tal.
## Título

Página dois, tal tal tal.
## Título

Página dois, tal tal tal.
## Título

Página dois, tal tal tal.
## Título

Página dois, tal tal tal.
## Título

Página dois, tal tal tal.
## Título

Página dois, tal tal tal.
## Título

Página dois, tal tal tal.
## Título

Página dois, tal tal tal.
## Título

Página dois, tal tal tal.
## Exemplo de código

``` py title="Bubble Sort - Python3" linenums="1"
def bubblesort(elements):
for n in range(len(elements)-1, 0, -1):
swapped = False
for i in range(n):
if elements[i] > elements[i + 1]:
swapped = True
elements[i], elements[i + 1] = elements[i + 1], elements[i]
if not swapped:
return
```
68 changes: 52 additions & 16 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
site_name: Testando MK Docs
# Copyright (c) 2016-2023 Martin Donath <[email protected]>

# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:

# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.

# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.

# Project information:
site_name: ObjeX
site_url: https://github.com/FabricioDeQueiroz/mkdocs-modo-facil

# Repository:
repo_name: teste-mkdocs-modo-facil
repo_url: https://github.com/FabricioDeQueiroz/mkdocs-modo-facil

# Configuration:
theme:
name: material
features:
Expand All @@ -11,7 +39,15 @@ theme:
- content.tabs.link
- content.code.annotation
- content.code.copy
- announce.dismiss
- content.tooltips
- navigation.footer
- navigation.indexes
- navigation.tracking
- search.share
- toc.follow
language: pt-br
locale: pt_BR
palette:
- scheme: default
toggle:
Expand All @@ -25,6 +61,9 @@ theme:
name: Switch to light mode
primary: teal
accent: lime
font:
text: Roboto
code: Roboto Mono

markdown_extensions:
- pymdownx.highlight:
Expand All @@ -39,18 +78,15 @@ markdown_extensions:
- pymdownx.superfences
- pymdownx.mark
- attr_list
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg

extra:
social:
- icon: fontawesome/brands/github-alt
link: https://github.com/james-willett
- icon: fontawesome/brands/twitter
link: https://twitter.com/TheJamesWillett
- icon: fontawesome/brands/linkedin
link: https://www.linkedin.com/in/willettjames/

copyright: |
&copy; 2023 <a href="https://github.com/FabricioDeQueiroz" target="_blank" rel="noopener">Fabrício</a>

# extra:
# social:
# - icon: fontawesome/brands/github-alt
# link: https://github.com/james-willett
# - icon: fontawesome/brands/twitter
# link: https://twitter.com/TheJamesWillett
# - icon: fontawesome/brands/linkedin
# link: https://www.linkedin.com/in/willettjames/

# copyright: |
# &copy; 2023 <a href="https://github.com/FabricioDeQueiroz" target="_blank" rel="noopener">Fabrício</a>

0 comments on commit 48344cb

Please sign in to comment.