diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md deleted file mode 100644 index b0a0ab2f2..000000000 --- a/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,5 +0,0 @@ -# Code of Conduct - -The code of conduct for this project can be found at https://swift.org/code-of-conduct. - - diff --git a/src/App.vue b/src/App.vue index 1115d50a4..742765f74 100644 --- a/src/App.vue +++ b/src/App.vue @@ -14,7 +14,9 @@ :class="{ fromkeyboard: fromKeyboard, hascustomheader: hasCustomHeader }" >
- {{ $t('accessibility.skip-navigation') }} + + {{ $t('accessibility.skip-navigation') }} + diff --git a/src/components/Article.vue b/src/components/Article.vue index ff8894798..f95bbc71e 100644 --- a/src/components/Article.vue +++ b/src/components/Article.vue @@ -18,7 +18,7 @@ :rootReference="hierarchy.reference" :identifierUrl="identifierUrl" /> -
+
{ if (node.type === BlockType.paragraph) { return `${text}\n`; } + if (node.type === InlineType.codeVoice) { + return `${text}${node.code}`; + } if (node.type === InlineType.text) { return `${text}${node.text}`; } + if (node.type === InlineType.reference) { + const title = references[node.identifier]?.title ?? ''; + return `${text}${title}`; + } return text; }, '').trim(); }, diff --git a/src/components/ContentNode/Reference.vue b/src/components/ContentNode/Reference.vue index 8d275ce5c..d9dbe19ae 100644 --- a/src/components/ContentNode/Reference.vue +++ b/src/components/ContentNode/Reference.vue @@ -54,6 +54,9 @@ export default { name: 'Reference', computed: { isInternal({ url }) { + if (!url) { + return false; + } if (!url.startsWith('/') && !url.startsWith('#')) { // If the URL has a scheme, it's not an internal link. return false; @@ -92,7 +95,7 @@ export default { props: { url: { type: String, - required: true, + required: false, }, kind: { type: String, diff --git a/src/components/ContentNode/ReferenceExternal.vue b/src/components/ContentNode/ReferenceExternal.vue index f24e4b42f..732e180d7 100644 --- a/src/components/ContentNode/ReferenceExternal.vue +++ b/src/components/ContentNode/ReferenceExternal.vue @@ -9,7 +9,7 @@ --> @@ -19,7 +19,7 @@ export default { props: { url: { type: String, - required: true, + required: false, }, isActive: { type: Boolean, diff --git a/src/components/ContentNode/ReferenceInternal.vue b/src/components/ContentNode/ReferenceInternal.vue index bf55aee85..955119eeb 100644 --- a/src/components/ContentNode/ReferenceInternal.vue +++ b/src/components/ContentNode/ReferenceInternal.vue @@ -9,7 +9,7 @@ --> @@ -19,7 +19,7 @@ export default { props: { url: { type: String, - required: true, + required: false, }, isActive: { type: Boolean, diff --git a/src/components/DocumentationLayout.vue b/src/components/DocumentationLayout.vue index a24a770f0..f53dfe20c 100644 --- a/src/components/DocumentationLayout.vue +++ b/src/components/DocumentationLayout.vue @@ -19,8 +19,8 @@ :displaySidenav="enableNavigator" @toggle-sidenav="handleToggleSidenav" > - -