Bump version to 0.2.0 and refine mobile dock

This commit is contained in:
Server 2026-08-10 00:53:23 +00:00
parent 738aa1e0b6
commit a58a49aeb4
5 changed files with 8 additions and 6 deletions

View file

@ -5,4 +5,4 @@ from .server import build, create_app, run
from .ui import HeaderButton
__all__ = ["Component", "HeaderButton", "Page", "build", "create_app", "run"]
__version__ = "0.1.0"
__version__ = "0.2.0"

View file

@ -164,7 +164,7 @@ button { color: inherit; }
.mobile-search-results .search-result:hover, .mobile-search-results .search-result:focus-visible { background: transparent; }
.mobile-search-results .search-result strong { font-size: 1.25rem; }
.mobile-search-results .search-result span { font-size: 1rem; }
.mobile-dock { position: fixed; inset: auto 0 0; z-index: 50; display: flex; align-items: center; gap: 18px; padding: 16px 28px max(22px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, var(--shell) 74%, transparent); }
.mobile-dock { position: fixed; inset: auto 0 0; z-index: 50; display: flex; align-items: center; gap: 18px; padding: 16px 28px max(22px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, var(--shell) 0%, transparent); }
.mobile-menu-button { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; color: var(--text); background: var(--control); font-size: 1.6rem; }
body.mobile-menu-open .mobile-menu-button { background: var(--active); }
.mobile-search-control { display: flex; min-width: 0; height: 72px; flex: 1; align-items: center; border-radius: 38px; background: var(--control); }

View file

@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "shared-docs-lib"
version = "0.1.0"
version = "0.2.0"
description = "Build self-contained, Obsidian-like documentation sites from Python functions."
readme = "README.md"
requires-python = ">=3.10"
@ -27,4 +27,3 @@ packages = ["docslib"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"

View file

@ -7,7 +7,7 @@ import zipfile
from fastapi.testclient import TestClient
from docslib import HeaderButton, build
from docslib import HeaderButton, __version__, build
from docslib.components import H1, Image, P
from docslib.hooks import Page
from docslib.server import create_app
@ -109,6 +109,7 @@ def test_all_endpoints_and_self_contained_build(tmp_path):
assert ".mobile-page-tree .tree-link { min-height: 46px; padding: 9px 14px; border-radius: 24px" in html
assert ".mobile-menu-button { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; color: var(--text); background: var(--control); font-size: 1.6rem; }" in html
assert ".nav-card { display: flex; min-height: 48px; align-items: center; gap: 8px; padding: 7px 20px; border: 0; border-radius: 30px" in html
assert "background: linear-gradient(0deg, var(--shell) 0%, transparent)" in html
assert "<script src=" not in html
assert "<link rel=" not in html
@ -122,6 +123,8 @@ def test_all_endpoints_and_self_contained_build(tmp_path):
def test_build_writes_static_bundle(tmp_path):
assert __version__ == "0.2.0"
@Page("1", "Static page")
def static_page():
return H1("Static documentation")

2
uv.lock generated
View file

@ -452,7 +452,7 @@ wheels = [
[[package]]
name = "shared-docs-lib"
version = "0.1.0"
version = "0.2.0"
source = { editable = "." }
dependencies = [
{ name = "fastapi" },