Add new type of content
This commit is contained in:
10
make-post.py
10
make-post.py
@@ -53,6 +53,15 @@ def post_fc():
|
|||||||
generate_img(name, f"post/{year}/{title}")
|
generate_img(name, f"post/{year}/{title}")
|
||||||
|
|
||||||
|
|
||||||
|
def notebook_fc():
|
||||||
|
# get the current year as variable
|
||||||
|
year = str(datetime.datetime.now().year)
|
||||||
|
name = input("Give me the title\n")
|
||||||
|
title = name_cleaning(name)
|
||||||
|
os.system(f"hugo_nbnew ./content/post/{year}/{title}")
|
||||||
|
generate_img(name, f"post/{year}/{title}")
|
||||||
|
|
||||||
|
|
||||||
def micro_fc():
|
def micro_fc():
|
||||||
print("Make a micro")
|
print("Make a micro")
|
||||||
name = input("Give me the title\n")
|
name = input("Give me the title\n")
|
||||||
@@ -92,6 +101,7 @@ ANSWER = {
|
|||||||
"redirect": post_redirect,
|
"redirect": post_redirect,
|
||||||
"weekly_cover": weeklycover,
|
"weekly_cover": weeklycover,
|
||||||
"now": now_fc,
|
"now": now_fc,
|
||||||
|
"notebook": notebook_fc,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
3
makefile
3
makefile
@@ -99,3 +99,6 @@ micro: ## Run microblog script
|
|||||||
|
|
||||||
now: ## Run now script
|
now: ## Run now script
|
||||||
@uv run python3 make-post.py now
|
@uv run python3 make-post.py now
|
||||||
|
|
||||||
|
notebook: ## Run notebook script
|
||||||
|
@uv run python3 make-post.py notebook
|
||||||
|
|||||||
6
package-lock.json
generated
6
package-lock.json
generated
@@ -150,9 +150,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/caniuse-lite": {
|
"node_modules/caniuse-lite": {
|
||||||
"version": "1.0.30001737",
|
"version": "1.0.30001739",
|
||||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001737.tgz",
|
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001739.tgz",
|
||||||
"integrity": "sha512-BiloLiXtQNrY5UyF0+1nSJLXUENuhka2pzy2Fx5pGxqavdrxSCW4U6Pn/PoG3Efspi2frRbHpBV2XsrPE6EDlw==",
|
"integrity": "sha512-y+j60d6ulelrNSwpPyrHdl+9mJnQzHBr08xm48Qno0nSk4h3Qojh+ziv2qE6rXf4k3tadF4o1J/1tAbVm1NtnA==",
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
|
|||||||
@@ -24,7 +24,10 @@ ignore = "false"
|
|||||||
location = ".env"
|
location = ".env"
|
||||||
|
|
||||||
[dependency-groups]
|
[dependency-groups]
|
||||||
dev = ["pre-commit>=4.1.0,<5"]
|
dev = [
|
||||||
|
"hugo-nbconvert>=2025.5.24.3",
|
||||||
|
"pre-commit>=4.1.0,<5",
|
||||||
|
]
|
||||||
|
|
||||||
[tool.hatch.build.targets.sdist]
|
[tool.hatch.build.targets.sdist]
|
||||||
include = ["fundor333"]
|
include = ["fundor333"]
|
||||||
|
|||||||
331
requirements.txt
331
requirements.txt
@@ -1,12 +1,45 @@
|
|||||||
# This file was autogenerated by uv via the following command:
|
# This file was autogenerated by uv via the following command:
|
||||||
# uv export --no-hashes --format requirements-txt
|
# uv export --no-hashes --format requirements-txt
|
||||||
-e .
|
-e .
|
||||||
|
anyio==4.10.0
|
||||||
|
# via
|
||||||
|
# httpx
|
||||||
|
# jupyter-server
|
||||||
|
appnope==0.1.4 ; sys_platform == 'darwin'
|
||||||
|
# via ipykernel
|
||||||
|
argon2-cffi==25.1.0
|
||||||
|
# via jupyter-server
|
||||||
|
argon2-cffi-bindings==25.1.0
|
||||||
|
# via argon2-cffi
|
||||||
|
arrow==1.3.0
|
||||||
|
# via isoduration
|
||||||
|
asttokens==3.0.0
|
||||||
|
# via stack-data
|
||||||
|
async-lru==2.0.5
|
||||||
|
# via jupyterlab
|
||||||
|
attrs==25.3.0
|
||||||
|
# via
|
||||||
|
# jsonschema
|
||||||
|
# referencing
|
||||||
|
babel==2.17.0
|
||||||
|
# via jupyterlab-server
|
||||||
beautifulsoup4==4.13.4
|
beautifulsoup4==4.13.4
|
||||||
# via fundor333-github-io
|
# via
|
||||||
|
# fundor333-github-io
|
||||||
|
# nbconvert
|
||||||
bleach==6.2.0
|
bleach==6.2.0
|
||||||
# via fundor333-github-io
|
# via
|
||||||
|
# fundor333-github-io
|
||||||
|
# nbconvert
|
||||||
certifi==2025.8.3
|
certifi==2025.8.3
|
||||||
# via requests
|
# via
|
||||||
|
# httpcore
|
||||||
|
# httpx
|
||||||
|
# requests
|
||||||
|
cffi==1.17.1
|
||||||
|
# via
|
||||||
|
# argon2-cffi-bindings
|
||||||
|
# pyzmq
|
||||||
cfgv==3.4.0
|
cfgv==3.4.0
|
||||||
# via pre-commit
|
# via pre-commit
|
||||||
charset-normalizer==3.4.3
|
charset-normalizer==3.4.3
|
||||||
@@ -16,72 +49,352 @@ click==8.2.1
|
|||||||
# typer
|
# typer
|
||||||
# weeknotebot
|
# weeknotebot
|
||||||
colorama==0.4.6 ; sys_platform == 'win32'
|
colorama==0.4.6 ; sys_platform == 'win32'
|
||||||
# via click
|
# via
|
||||||
|
# click
|
||||||
|
# ipython
|
||||||
|
comm==0.2.3
|
||||||
|
# via
|
||||||
|
# ipykernel
|
||||||
|
# ipywidgets
|
||||||
|
debugpy==1.8.16
|
||||||
|
# via ipykernel
|
||||||
|
decorator==5.2.1
|
||||||
|
# via ipython
|
||||||
|
defusedxml==0.7.1
|
||||||
|
# via nbconvert
|
||||||
distlib==0.4.0
|
distlib==0.4.0
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
|
executing==2.2.0
|
||||||
|
# via stack-data
|
||||||
|
fastjsonschema==2.21.2
|
||||||
|
# via nbformat
|
||||||
feedparser==6.0.11
|
feedparser==6.0.11
|
||||||
# via
|
# via
|
||||||
# fundor333-github-io
|
# fundor333-github-io
|
||||||
# weeknotebot
|
# weeknotebot
|
||||||
filelock==3.18.0
|
filelock==3.18.0
|
||||||
# via virtualenv
|
# via virtualenv
|
||||||
|
fqdn==1.5.1
|
||||||
|
# via jsonschema
|
||||||
|
h11==0.16.0
|
||||||
|
# via httpcore
|
||||||
|
httpcore==1.0.9
|
||||||
|
# via httpx
|
||||||
|
httpx==0.28.1
|
||||||
|
# via jupyterlab
|
||||||
|
hugo==0.149.0
|
||||||
|
# via hugo-nbconvert
|
||||||
|
hugo-nbconvert==2025.5.24.3
|
||||||
identify==2.6.13
|
identify==2.6.13
|
||||||
# via pre-commit
|
# via pre-commit
|
||||||
idna==3.10
|
idna==3.10
|
||||||
# via requests
|
# via
|
||||||
|
# anyio
|
||||||
|
# httpx
|
||||||
|
# jsonschema
|
||||||
|
# requests
|
||||||
|
ipykernel==6.30.1
|
||||||
|
# via
|
||||||
|
# jupyter
|
||||||
|
# jupyter-console
|
||||||
|
# jupyterlab
|
||||||
|
ipython==9.5.0
|
||||||
|
# via
|
||||||
|
# ipykernel
|
||||||
|
# ipywidgets
|
||||||
|
# jupyter-console
|
||||||
|
ipython-pygments-lexers==1.1.1
|
||||||
|
# via ipython
|
||||||
|
ipywidgets==8.1.7
|
||||||
|
# via jupyter
|
||||||
|
isoduration==20.11.0
|
||||||
|
# via jsonschema
|
||||||
|
jedi==0.19.2
|
||||||
|
# via ipython
|
||||||
|
jinja2==3.1.6
|
||||||
|
# via
|
||||||
|
# jupyter-server
|
||||||
|
# jupyterlab
|
||||||
|
# jupyterlab-server
|
||||||
|
# nbconvert
|
||||||
|
json5==0.12.1
|
||||||
|
# via jupyterlab-server
|
||||||
|
jsonpointer==3.0.0
|
||||||
|
# via jsonschema
|
||||||
|
jsonschema==4.25.1
|
||||||
|
# via
|
||||||
|
# jupyter-events
|
||||||
|
# jupyterlab-server
|
||||||
|
# nbformat
|
||||||
|
jsonschema-specifications==2025.4.1
|
||||||
|
# via jsonschema
|
||||||
|
jupyter==1.1.1
|
||||||
|
# via hugo-nbconvert
|
||||||
|
jupyter-client==8.6.3
|
||||||
|
# via
|
||||||
|
# ipykernel
|
||||||
|
# jupyter-console
|
||||||
|
# jupyter-server
|
||||||
|
# nbclient
|
||||||
|
jupyter-console==6.6.3
|
||||||
|
# via jupyter
|
||||||
|
jupyter-core==5.8.1
|
||||||
|
# via
|
||||||
|
# ipykernel
|
||||||
|
# jupyter-client
|
||||||
|
# jupyter-console
|
||||||
|
# jupyter-server
|
||||||
|
# jupyterlab
|
||||||
|
# nbclient
|
||||||
|
# nbconvert
|
||||||
|
# nbformat
|
||||||
|
jupyter-events==0.12.0
|
||||||
|
# via jupyter-server
|
||||||
|
jupyter-lsp==2.3.0
|
||||||
|
# via jupyterlab
|
||||||
|
jupyter-server==2.17.0
|
||||||
|
# via
|
||||||
|
# jupyter-lsp
|
||||||
|
# jupyterlab
|
||||||
|
# jupyterlab-server
|
||||||
|
# notebook
|
||||||
|
# notebook-shim
|
||||||
|
jupyter-server-terminals==0.5.3
|
||||||
|
# via jupyter-server
|
||||||
|
jupyterlab==4.4.6
|
||||||
|
# via
|
||||||
|
# jupyter
|
||||||
|
# notebook
|
||||||
|
jupyterlab-pygments==0.3.0
|
||||||
|
# via nbconvert
|
||||||
|
jupyterlab-server==2.27.3
|
||||||
|
# via
|
||||||
|
# jupyterlab
|
||||||
|
# notebook
|
||||||
|
jupyterlab-widgets==3.0.15
|
||||||
|
# via ipywidgets
|
||||||
|
lark==1.2.2
|
||||||
|
# via rfc3987-syntax
|
||||||
lxml==6.0.0
|
lxml==6.0.0
|
||||||
# via fundor333-github-io
|
# via fundor333-github-io
|
||||||
markdown-it-py==3.0.0
|
markdown-it-py==3.0.0
|
||||||
# via rich
|
# via rich
|
||||||
|
markupsafe==3.0.2
|
||||||
|
# via
|
||||||
|
# jinja2
|
||||||
|
# nbconvert
|
||||||
marshmallow==3.26.1
|
marshmallow==3.26.1
|
||||||
# via weeknotebot
|
# via weeknotebot
|
||||||
|
matplotlib-inline==0.1.7
|
||||||
|
# via
|
||||||
|
# ipykernel
|
||||||
|
# ipython
|
||||||
mdurl==0.1.2
|
mdurl==0.1.2
|
||||||
# via markdown-it-py
|
# via markdown-it-py
|
||||||
|
mistune==3.1.4
|
||||||
|
# via nbconvert
|
||||||
|
nbclient==0.10.2
|
||||||
|
# via nbconvert
|
||||||
|
nbconvert==7.16.6
|
||||||
|
# via
|
||||||
|
# hugo-nbconvert
|
||||||
|
# jupyter
|
||||||
|
# jupyter-server
|
||||||
|
nbformat==5.10.4
|
||||||
|
# via
|
||||||
|
# jupyter-server
|
||||||
|
# nbclient
|
||||||
|
# nbconvert
|
||||||
|
nest-asyncio==1.6.0
|
||||||
|
# via ipykernel
|
||||||
nodeenv==1.9.1
|
nodeenv==1.9.1
|
||||||
# via pre-commit
|
# via pre-commit
|
||||||
|
notebook==7.4.5
|
||||||
|
# via jupyter
|
||||||
|
notebook-shim==0.2.4
|
||||||
|
# via
|
||||||
|
# jupyterlab
|
||||||
|
# notebook
|
||||||
packaging==25.0
|
packaging==25.0
|
||||||
# via marshmallow
|
# via
|
||||||
|
# ipykernel
|
||||||
|
# jupyter-events
|
||||||
|
# jupyter-server
|
||||||
|
# jupyterlab
|
||||||
|
# jupyterlab-server
|
||||||
|
# marshmallow
|
||||||
|
# nbconvert
|
||||||
|
pandocfilters==1.5.1
|
||||||
|
# via nbconvert
|
||||||
|
parso==0.8.5
|
||||||
|
# via jedi
|
||||||
|
pexpect==4.9.0 ; sys_platform != 'emscripten' and sys_platform != 'win32'
|
||||||
|
# via ipython
|
||||||
pillow==11.3.0
|
pillow==11.3.0
|
||||||
# via fundor333-github-io
|
# via fundor333-github-io
|
||||||
platformdirs==4.3.8
|
platformdirs==4.3.8
|
||||||
# via virtualenv
|
# via
|
||||||
|
# jupyter-core
|
||||||
|
# virtualenv
|
||||||
pre-commit==4.3.0
|
pre-commit==4.3.0
|
||||||
|
prometheus-client==0.22.1
|
||||||
|
# via jupyter-server
|
||||||
|
prompt-toolkit==3.0.52
|
||||||
|
# via
|
||||||
|
# ipython
|
||||||
|
# jupyter-console
|
||||||
|
psutil==7.0.0
|
||||||
|
# via ipykernel
|
||||||
|
ptyprocess==0.7.0 ; os_name != 'nt' or (sys_platform != 'emscripten' and sys_platform != 'win32')
|
||||||
|
# via
|
||||||
|
# pexpect
|
||||||
|
# terminado
|
||||||
|
pure-eval==0.2.3
|
||||||
|
# via stack-data
|
||||||
|
pycparser==2.22
|
||||||
|
# via cffi
|
||||||
pygments==2.19.2
|
pygments==2.19.2
|
||||||
# via rich
|
# via
|
||||||
|
# ipython
|
||||||
|
# ipython-pygments-lexers
|
||||||
|
# jupyter-console
|
||||||
|
# nbconvert
|
||||||
|
# rich
|
||||||
|
python-dateutil==2.9.0.post0
|
||||||
|
# via
|
||||||
|
# arrow
|
||||||
|
# jupyter-client
|
||||||
python-dotenv==1.1.1
|
python-dotenv==1.1.1
|
||||||
# via fundor333-github-io
|
# via fundor333-github-io
|
||||||
python-frontmatter==1.1.0
|
python-frontmatter==1.1.0
|
||||||
# via fundor333-github-io
|
# via fundor333-github-io
|
||||||
|
python-json-logger==3.3.0
|
||||||
|
# via jupyter-events
|
||||||
|
pywin32==311 ; platform_python_implementation != 'PyPy' and sys_platform == 'win32'
|
||||||
|
# via jupyter-core
|
||||||
|
pywinpty==3.0.0 ; os_name == 'nt'
|
||||||
|
# via
|
||||||
|
# jupyter-server
|
||||||
|
# jupyter-server-terminals
|
||||||
|
# terminado
|
||||||
pyyaml==6.0.2
|
pyyaml==6.0.2
|
||||||
# via
|
# via
|
||||||
# fundor333-github-io
|
# fundor333-github-io
|
||||||
|
# jupyter-events
|
||||||
# pre-commit
|
# pre-commit
|
||||||
# python-frontmatter
|
# python-frontmatter
|
||||||
|
pyzmq==27.0.2
|
||||||
|
# via
|
||||||
|
# ipykernel
|
||||||
|
# jupyter-client
|
||||||
|
# jupyter-console
|
||||||
|
# jupyter-server
|
||||||
|
referencing==0.36.2
|
||||||
|
# via
|
||||||
|
# jsonschema
|
||||||
|
# jsonschema-specifications
|
||||||
|
# jupyter-events
|
||||||
requests==2.32.4
|
requests==2.32.4
|
||||||
# via
|
# via
|
||||||
# fundor333-github-io
|
# fundor333-github-io
|
||||||
|
# jupyterlab-server
|
||||||
# weeknotebot
|
# weeknotebot
|
||||||
|
rfc3339-validator==0.1.4
|
||||||
|
# via
|
||||||
|
# jsonschema
|
||||||
|
# jupyter-events
|
||||||
|
rfc3986-validator==0.1.1
|
||||||
|
# via
|
||||||
|
# jsonschema
|
||||||
|
# jupyter-events
|
||||||
|
rfc3987-syntax==1.1.0
|
||||||
|
# via jsonschema
|
||||||
rich==13.9.4
|
rich==13.9.4
|
||||||
# via
|
# via
|
||||||
# typer
|
# typer
|
||||||
# weeknotebot
|
# weeknotebot
|
||||||
|
rpds-py==0.27.1
|
||||||
|
# via
|
||||||
|
# jsonschema
|
||||||
|
# referencing
|
||||||
|
send2trash==1.8.3
|
||||||
|
# via jupyter-server
|
||||||
|
setuptools==80.9.0
|
||||||
|
# via jupyterlab
|
||||||
sgmllib3k==1.0.0
|
sgmllib3k==1.0.0
|
||||||
# via feedparser
|
# via feedparser
|
||||||
shellingham==1.5.4
|
shellingham==1.5.4
|
||||||
# via typer
|
# via typer
|
||||||
|
six==1.17.0
|
||||||
|
# via
|
||||||
|
# python-dateutil
|
||||||
|
# rfc3339-validator
|
||||||
|
sniffio==1.3.1
|
||||||
|
# via anyio
|
||||||
|
sodatools==2025.2.16.0
|
||||||
|
# via hugo-nbconvert
|
||||||
soupsieve==2.7
|
soupsieve==2.7
|
||||||
# via beautifulsoup4
|
# via beautifulsoup4
|
||||||
|
stack-data==0.6.3
|
||||||
|
# via ipython
|
||||||
|
terminado==0.18.1
|
||||||
|
# via
|
||||||
|
# jupyter-server
|
||||||
|
# jupyter-server-terminals
|
||||||
|
tinycss2==1.4.0
|
||||||
|
# via bleach
|
||||||
|
tornado==6.5.2
|
||||||
|
# via
|
||||||
|
# ipykernel
|
||||||
|
# jupyter-client
|
||||||
|
# jupyter-server
|
||||||
|
# jupyterlab
|
||||||
|
# notebook
|
||||||
|
# terminado
|
||||||
|
traitlets==5.14.3
|
||||||
|
# via
|
||||||
|
# ipykernel
|
||||||
|
# ipython
|
||||||
|
# ipywidgets
|
||||||
|
# jupyter-client
|
||||||
|
# jupyter-console
|
||||||
|
# jupyter-core
|
||||||
|
# jupyter-events
|
||||||
|
# jupyter-server
|
||||||
|
# jupyterlab
|
||||||
|
# matplotlib-inline
|
||||||
|
# nbclient
|
||||||
|
# nbconvert
|
||||||
|
# nbformat
|
||||||
typer==0.16.0
|
typer==0.16.0
|
||||||
# via fundor333-github-io
|
# via fundor333-github-io
|
||||||
|
types-python-dateutil==2.9.0.20250822
|
||||||
|
# via arrow
|
||||||
typing-extensions==4.14.1
|
typing-extensions==4.14.1
|
||||||
# via
|
# via
|
||||||
|
# anyio
|
||||||
# beautifulsoup4
|
# beautifulsoup4
|
||||||
|
# referencing
|
||||||
# typer
|
# typer
|
||||||
|
uri-template==1.3.0
|
||||||
|
# via jsonschema
|
||||||
urllib3==2.5.0
|
urllib3==2.5.0
|
||||||
# via requests
|
# via requests
|
||||||
virtualenv==20.33.1
|
virtualenv==20.33.1
|
||||||
# via pre-commit
|
# via pre-commit
|
||||||
|
watchdog==6.0.0
|
||||||
|
# via hugo-nbconvert
|
||||||
|
wcwidth==0.2.13
|
||||||
|
# via prompt-toolkit
|
||||||
|
webcolors==24.11.1
|
||||||
|
# via jsonschema
|
||||||
webencodings==0.5.1
|
webencodings==0.5.1
|
||||||
# via bleach
|
# via
|
||||||
|
# bleach
|
||||||
|
# tinycss2
|
||||||
|
websocket-client==1.8.0
|
||||||
|
# via jupyter-server
|
||||||
weeknotebot==1.7.0
|
weeknotebot==1.7.0
|
||||||
# via fundor333-github-io
|
# via fundor333-github-io
|
||||||
|
widgetsnbextension==4.0.14
|
||||||
|
# via ipywidgets
|
||||||
|
|||||||
Reference in New Issue
Block a user