Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 100 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: Quarto Documentation

on:
push:
branches: [main]
tags: [v*]
workflow_dispatch:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
actions: write
contents: write # needed for gh-pages

jobs:
build-docs:
name: Build and Deploy Documentation
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.11'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[dev]"

- name: Set PYTHONPATH
run: echo "PYTHONPATH=$GITHUB_WORKSPACE/src" >> $GITHUB_ENV

- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Check Quarto installation
run: |
quarto check

- name: Render Quarto site
run: |
quarto render book

# Deploy Preview for PRs
- name: Publish PR Preview
if: github.event_name == 'pull_request'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_site
destination_dir: previews/PR${{ github.event.number }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Deploy Dev Site from main
- name: Publish Dev Site
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_site
destination_dir: dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Deploy Versioned Release
- name: Publish Versioned Site
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_site
destination_dir: ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create 'latest' alias for stable release
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && !contains(github.ref_name, '-')
run: |
version="${GITHUB_REF#refs/tags/}"
echo "Detected version: $version"
mkdir -p ./latest
cp -r ./docs/_site/* ./latest/

- name: Publish stable release to 'latest'
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && !contains(github.ref_name, '-')
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./latest
destination_dir: latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
149 changes: 149 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class


**/lightning_logs/**

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# IPython / Jupyter Notebook
.ipynb_checkpoints
*.ipynb_export

# PEP 582; used by e.g. python-pdm
__pypackages__/

# pyenv
.python-version

# pipenv
Pipfile.lock

# poetry
poetry.lock

# pdm
pdm.lock
__pypackages__/

# celery beat schedule file
celerybeat-schedule
celerybeat.pid

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# pyre type checker
.pyre/

# pytype
.pytype/

# Cython debug symbols
cython_debug/

# VS Code
.vscode/

# PyCharm
.idea/

# macOS
.DS_Store

# Others
*.log
*.tmp
4 changes: 3 additions & 1 deletion book/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/.quarto/

_book/
_book/

**/lightning_logs/**
17 changes: 6 additions & 11 deletions book/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ project:
type: book

book:
title: "book"
title: "Previsão de Séries temporais com Python: um pequeno guia"
author: "Felipe Angelim"
date: "10/11/2025"
chapters:
Expand All @@ -17,18 +17,13 @@ book:
- part: "Part II: Intermediário"
chapters:
- content/pt/part2/exog_variables.qmd
- content/pt/part2/feature_engineering.qmd
- content/pt/part2/ml_models.qmd
- content/pt/part2/probabilistic_forecasting.qmd
- content/pt/part2/probabilistic_metrics.qmd
- part: "Part III: Avançado"
- content/pt/part2/panel_data.qmd
- content/pt/part2/hierarchical_forecasting.qmd
- content/pt/part2/deep_learning.qmd
- part: "Part III: Apêndices"
chapters:
- content/pt/part3/panel_data.qmd
- content/pt/part3/hierarchical_forecasting.qmd
- content/pt/part3/deep_learning.qmd
- part: "Part IV: Apêndices"
chapters:
- content/pt/part4/sktime_custom.qmd
- content/pt/extra/sktime_custom.qmd

bibliography: references.bib

Expand Down
Binary file added book/content/pt/extra/img/private_methods.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading