Skip to content

Commit

Permalink
introduced content-structure as monorepo package
Browse files Browse the repository at this point in the history
  • Loading branch information
wassfila committed May 18, 2024
1 parent 55d51dc commit d21d780
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .astro/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"enabled": false
},
"_variables": {
"lastUpdateCheck": 1714838279920
"lastUpdateCheck": 1716025897749
}
}
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "packages/content-structure"]
path = packages/content-structure
url = git@github.com:MicroWebStacks/content-structure.git
2 changes: 1 addition & 1 deletion content/examples/page-reference/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## simple reference

Link to page::panzoom
Link to page::examples.panzoom

## deep path reference

Expand Down
6 changes: 3 additions & 3 deletions content/examples/short-reference/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ The SID is unique and fixed, as a hash, only changes if the UID change, and is n

* Reference to a page

Link to page::panzoom
Link to page::examples.panzoom

* Short Reference to the same page

Link to sid::981cd4a3
Link to sid::2491a5c3

It is also possible to reference assets, which produce a deep link within the page containing the asset, and also a back link to all references from within the asset itself

* Short reference to an image

Link to sid::5d43a9e7
Link to sid::2d2a0446

4 changes: 2 additions & 2 deletions content/home/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,12 @@ this is how you can reference a page

```markdown
Link to page::<page-uid>
Link to page::panzoom
Link to page::examples.panzoom
```
will produce this


Link to page::panzoom
Link to page::examples.panzoom

## deep path reference
A slug is only unique within a content type, therefore in case of multiple files with the same folder name and title, it is possible to use the automatically generated unique identifier available in the `index.json`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@google/model-viewer": "^3.4.0",
"@svgdotjs/svg.js": "^3.1.2",
"astro": "^4.5.10",
"content-structure": "^1.1.7",
"content-structure": "file:packages/content-structure",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"datatables.net-dt": "^1.13.7",
Expand Down
1 change: 1 addition & 0 deletions packages/content-structure
Submodule content-structure added at 2a400b
2 changes: 2 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- 'packages/*'

0 comments on commit d21d780

Please sign in to comment.