Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ packages/document-issue-quarto/examples/footer/document_files/*
packages/document-issue-io/tests/test-outputs
packages/document-issue-quarto/tests/test-outputs
docs/example-documents
docs/document-issue-quarto-examples
docs/CONTRIBUTING.md
docs/document-issue-quarto-examples/**/document.pdf
packages/document-issue-quarto/**/document.pdf
Expand Down
16 changes: 14 additions & 2 deletions docs/_get_document_issue_quarto_examples.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
import pathlib
import shutil

html = "{=html}"
callout = "{.callout-note collapse='true'}"
PAGE = """
---
title: "{name}"
---

::: {callout}
## Markdown Source File

````
{md}
````
:::

```{html}
<embed src="{name}/document.pdf" width="600px" height="1000px"/>
```
Expand All @@ -16,8 +26,10 @@
fdir_dst.mkdir(exist_ok=True)
fpths = fdir_src.glob("**/document.pdf")
for x in fpths:
name = x.parents._tail[-2]
text = PAGE.format(name=name, html="{=html}")
fpth_md = x.with_suffix(".md")
md = fpth_md.read_text() if fpth_md.exists() else "(no markdown source file)"
name = x.parent.stem
text = PAGE.format(name=name, html=html, callout=callout, md=md) # , md=md
file = (fdir_dst / f"{name}.qmd").write_text(text)
fdir = fdir_dst / name
fdir.mkdir(exist_ok=True)
Expand Down
Binary file modified docs/images/erd-DocumentIssue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/erd-DocumentIssueV2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/erd-DocumentRole.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/erd-ProjectRoles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"name_nomenclature": "project-originator-volume-level-infotype-role-number",
"document_code": "06667-MXF-XX-XX-SH-M-20003",
"document_description": "Document Description",
"document_type": "Equipment Schedule",
"document_source": "DS",
"paper_size": "A4",
"scale": "nts",
Expand Down
3,882 changes: 1,827 additions & 2,055 deletions pixi.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,4 @@ tests = { depends-on = [
lint = "ruff check --fix"
format = "ruff format"
get-project-roles = { cmd = "python get-project-roles.py", cwd = "packages/bep/scripts" }
open-docs = {cmd="/mnt/c/windows/explorer.exe index.html", cwd="docs/_site"} # this will only work on WSL
Loading