Skip to content

Commit

Permalink
psuedo fileformat, issue #41
Browse files Browse the repository at this point in the history
  • Loading branch information
finanalyst committed Jul 25, 2024
1 parent 55b7063 commit f127fe7
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion rakudoc_draft_3.rakudoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=begin rakudoc :kind("Language") :subkind("Language") :category("reference")
=VERSION 2.6.0
=TITLE RakuDoc
=SUBTITLE A Raku slang for documenting Raku software to aid development and use.
=VERSION 2.7.0

RakuDoc is a markup language with simple instructions for simple tasks and more
complex structures to suit larger projects. There is a clear distinction between
Expand Down Expand Up @@ -3074,6 +3074,21 @@ of the bar is not significant.
When the schema is missing, then the C<https://> schema is implied, which means that
if the website url is missing as well, the link is to the same host as the document.

The exact name of the resource to which a link is pointing must be used by the renderer. So
L< For reference | README.md > or L< text reference | README >

must link to C<README.md> and to C<README>, with the renderer making no assumption about the
file format.

However, a collection of RakuDoc sources may be intended as the base for multiple formats, such
as C< .html >, C< .md >, or C< .pdf >, and so links within the collection need to delegate to the
renderer the file format (if one is needed). This is accomplished explicitly using the C< .* >
pseudo extension, for example:
L< dealing with the filesystem | type/IO.Path.* >

or for a heading within another resource:
L< a directory listing | type/IO.Path.*#routine_dir >

Several schemas are possible:
=item C<https://> or C<http://> The renderer may style the label and cause a jump in
a networked environment, as is normal for HTML documents.
Expand Down

0 comments on commit f127fe7

Please sign in to comment.