Skip to content

Commit

Permalink
Fix internal links
Browse files Browse the repository at this point in the history
  • Loading branch information
stain committed Sep 30, 2020
1 parent 1a2170b commit bfd9b2f
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ release/ro-crate-${TAG}.md: dependencies release/ docs/${RELEASE}/_metadata.liqu
`grep ^sort: docs/${RELEASE}/*.md | sort -n -k 2 | grep -v README.md| grep -v about.md | sed s/:.*//` \
docs/${RELEASE}/appendix/*.md docs/_includes/references.liquid docs/${RELEASE}/.references.md |\
grep -v '{%' > release/ro-crate-${TAG}.md
# Fix internal links to work in single-page
cp release/ro-crate-${TAG}.md release/ro-crate-${TAG}.md.orig
sed -i -E 's,]\(([^:)]*/)*([^:)]*)\.md\),](#\2),g' release/ro-crate-${TAG}.md
sed -i -E 's,]\([^):]*\.md#([^)]*)\),](#\1),g' release/ro-crate-${TAG}.md

release/ro-crate-${TAG}.html: dependencies release/ release/ro-crate-${TAG}.md
egrep -v '^{:(\.no_)?toc}' release/ro-crate-${TAG}.md | \
Expand Down
2 changes: 2 additions & 0 deletions docs/1.1-DRAFT/appendix/jsonld.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ excerpt: |
limitations under the License.
-->

<div id="jsonld"></div>

# APPENDIX: RO-Crate JSON-LD

It is not necessary to use [JSON-LD tooling] to generate or parse the _RO-Crate Metadata File_, although JSON-LD tools may make it easier to conform to this specification, e.g. handling relative URIs. It is RECOMMENDED to use JSON tooling to handle [JSON][RFC 7159] syntax and escaping rules.
Expand Down
2 changes: 2 additions & 0 deletions docs/1.1-DRAFT/appendix/relative-uris.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ excerpt: |
limitations under the License.
-->

<div id="relative-uris"></div>

# APPENDIX: Handling relative URI references

The _RO-Crate Metadata File_ use _relative URI references_ to identify files and directories
Expand Down
1 change: 1 addition & 0 deletions docs/1.1-DRAFT/contextual-entities.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jekyll-mentions: false
limitations under the License.
-->

<div id="contextual-entities"></div>

# Representing Contextual Entities

Expand Down
2 changes: 2 additions & 0 deletions docs/1.1-DRAFT/metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ sort: 5
limitations under the License.
-->

<div id="metadata"></div>

# RO-Crate Metadata

RO-Crate aims to capture and describe the [Research Object][ResearchObject] using structured _metadata_.
Expand Down
1 change: 1 addition & 0 deletions docs/1.1-DRAFT/provenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ sort: 9
limitations under the License.
-->

<div id="provenance"></div>

# Detailing provenance of entities

Expand Down
2 changes: 1 addition & 1 deletion docs/1.1-DRAFT/root-data-entity.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ sort: 6
limitations under the License.
-->

# Core Metadata for the Root Data Entity
# Root Data Entity

The **Root Data Entity** is a [Dataset] that represent the RO-Crate as a whole;
a _Research Object_ that includes the _Data Entities_ and the related
Expand Down
2 changes: 2 additions & 0 deletions docs/1.1-DRAFT/structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ sort: 4
limitations under the License.
-->

<div id="structure"></div>

# RO-Crate Structure

The structure an _RO-Crate_ MUST follow is:
Expand Down
2 changes: 2 additions & 0 deletions docs/1.1-DRAFT/workflows.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ sort: 10
limitations under the License.
-->

<div id="workflows"></div>

# Workflows and Scripts

Scientific workflows and scripts that were used (or can be used) to analyze or generate files contained in an RO-Crate MAY be embedded in an RO-Crate. _Workflows_ and _scripts_ SHOULD be described using [data entities](data-entities.md) of type [SoftwareSourceCode].
Expand Down

0 comments on commit bfd9b2f

Please sign in to comment.