Skip to content

Commit d3205af

Browse files
msaelicesrigor789
authored andcommitted
Allow adding both NS API docs and a link to the NS guide. (#166)
1 parent e286bb0 commit d3205af

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

content/docs/en/elements/layouts/absolute-layout.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: AbsoluteLayout
33
apiRef: https://docs.nativescript.org/api-reference/modules/_ui_layouts_absolute_layout_
4+
docRef: https://docs.nativescript.org/ui/layouts/layout-containers#absolutelayout
45
contributors: [rigor789, ikoevska]
56
---
67

layouts/docs.ejs

+8
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@
4747
text-blue-dark p-4 my-8">
4848
<p>
4949
This is an overview of the most common usage of <%= current.title %>.
50+
<% if (current.docRef) { %>
51+
See <a href="<%= current.docRef %>"
52+
target="_blank"
53+
rel="noopener"
54+
class="no-underline text-green hover:text-blue-dark">
55+
the NativeScript docs
56+
</a> for more information about <%= current.title %>.
57+
<% } %>
5058
For more information about the available properties, methods, or events, head over
5159
to <a href="<%= current.apiRef %>"
5260
target="_blank"

0 commit comments

Comments
 (0)