# Path: app/routes.py
# def index() -> Any:
# def resume() -> Any:
# def projects() -> Any:
# def notes() -> Any:
# def shelf() -> Any:
# def note(slug: str = '') -> Any:
# def references() -> Any:
# def reference(slug: str = '') -> Any:
# def about() -> Any:
# def atom_feed() -> Any:
# def sitemap_urls() -> Any:


import os
import dotenv
    import rollbar
    import rollbar.contrib.flask
from typing import Any, Dict
from flask import (
    Flask,
    Response,
    got_request_exception,
    render_template,
)
from flask_sitemap import Sitemap
from syspath import git_root
from varsnap import varsnap
from app.routes import handlers, sitemap_urls  # noqa: E402

dotenv.load_dotenv(git_root.path / '.env')



app = Flask(
    __name__,
    static_url_path='/static',
    static_folder=git_root.path / 'static',
)
app.debug = os.environ['DEBUG'] == 'true'
if os.environ.get('SERVER_NAME', ''):  # pragma: no cover
    app.config['SERVER_NAME'] = os.environ['SERVER_NAME']

app.config['SITEMAP_INCLUDE_RULES_WITHOUT_PARAMS'] = True
app.config['SITEMAP_URL_SCHEME'] = 'https'
ext = Sitemap(app=app)

# Path: app/routes.py
# def index() -> Any:
# def resume() -> Any:
# def projects() -> Any:
# def notes() -> Any:
# def shelf() -> Any:
# def note(slug: str = '') -> Any:
# def references() -> Any:
# def reference(slug: str = '') -> Any:
# def about() -> Any:
# def atom_feed() -> Any:
# def sitemap_urls() -> Any:


# Path: app/serve.py
import os
import dotenv
    import rollbar
    import rollbar.contrib.flask
from typing import Any, Dict
from flask import (
    Flask,
    Response,
    got_request_exception,
    render_template,
)
from flask_sitemap import Sitemap
from syspath import git_root
from varsnap import varsnap
from app.routes import handlers, sitemap_urls  # noqa: E402


dotenv.load_dotenv(git_root.path / '.env')



app = Flask(
    __name__,
    static_url_path='/static',
    static_folder=git_root.path / 'static',
)
app.debug = os.environ['DEBUG'] == 'true'
if os.environ.get('SERVER_NAME', ''):  # pragma: no cover
    app.config['SERVER_NAME'] = os.environ['SERVER_NAME']

app.config['SITEMAP_INCLUDE_RULES_WITHOUT_PARAMS'] = True
app.config['SITEMAP_URL_SCHEME'] = 'https'
ext = Sitemap(app=app)

ext.register_generator(sitemap_urls)