Skip to content

Commit

Permalink
include site folder
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed Jun 2, 2024
1 parent 98337c2 commit 4ab9798
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,6 @@ venv.bak/
# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
Expand Down
Empty file.
17 changes: 17 additions & 0 deletions site/invenio_rdm_starter/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""Additional views."""

from flask import Blueprint

#
# Registration
#
def create_blueprint(app):
"""Register blueprint routes on app."""
blueprint = Blueprint(
"invenio_rdm_starter",
__name__,
template_folder="./templates",
)

# Add URL rules
return blueprint
16 changes: 16 additions & 0 deletions site/invenio_rdm_starter/webpack.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""JS/CSS Webpack bundles for InvenioRDM Starter."""

from invenio_assets.webpack import WebpackThemeBundle

theme = WebpackThemeBundle(
__name__,
"assets",
default="semantic-ui",
themes={
"semantic-ui": dict(
entry={
# Add your webpack entrypoints
},
),
},
)
3 changes: 3 additions & 0 deletions site/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "wheel", "babel>2.8"]
build-backend = "setuptools.build_meta"
13 changes: 13 additions & 0 deletions site/setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

[metadata]
name = invenio-rdm-starter

[options.extras_require]
tests =
pytest-invenio>=2.1.0,<3.0.0

[options.entry_points]
invenio_base.blueprints =
invenio_rdm_starter_views = invenio_rdm_starter.views:create_blueprint
invenio_assets.webpack =
invenio_rdm_starter_theme = invenio_rdm_starter.webpack:theme
3 changes: 3 additions & 0 deletions site/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from setuptools import setup

setup()

0 comments on commit 4ab9798

Please sign in to comment.