Add durable portable graph publication
This commit is contained in:
parent
96e3965855
commit
1134c2d375
19 changed files with 2542 additions and 13 deletions
|
|
@ -25,6 +25,7 @@ from .config_validation import (
|
|||
string_list,
|
||||
)
|
||||
from .errors import DocForgeError
|
||||
from .graph_render_config import load_graph_render_config
|
||||
from .models import (
|
||||
ContextProfile,
|
||||
Edge,
|
||||
|
|
@ -66,6 +67,7 @@ _DESCRIPTOR_KEYS = frozenset(
|
|||
"derived",
|
||||
"changesets",
|
||||
"render",
|
||||
"graph_render",
|
||||
"graph",
|
||||
"limits",
|
||||
"profiles",
|
||||
|
|
@ -560,6 +562,18 @@ def _load_descriptor(root: Path) -> ProjectDescriptor:
|
|||
changeset_root=changeset_root,
|
||||
limits=limits,
|
||||
)
|
||||
graph_render = load_graph_render_config(
|
||||
root,
|
||||
document.get("graph_render"),
|
||||
descriptor_path=descriptor_path,
|
||||
content_roots=content_roots,
|
||||
authority_files=authority_files,
|
||||
cache_root=cache_root,
|
||||
index_path=index_path,
|
||||
changeset_root=changeset_root,
|
||||
manual_render=render,
|
||||
limits=limits,
|
||||
)
|
||||
|
||||
profile_documents = document.get("profiles", [])
|
||||
if not isinstance(profile_documents, list):
|
||||
|
|
@ -623,6 +637,7 @@ def _load_descriptor(root: Path) -> ProjectDescriptor:
|
|||
changeset_root=changeset_root,
|
||||
proposal_writers=tuple(sorted(proposal_writers, key=lambda writer: writer.writer_id)),
|
||||
render=render,
|
||||
graph_render=graph_render,
|
||||
allowed_relations=allowed_relations,
|
||||
profiles=tuple(profiles),
|
||||
limits=limits,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue