Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need metadocumentation for :obj: and :func: syntax #18347

Closed
simonster opened this issue Sep 3, 2016 · 5 comments
Closed

Need metadocumentation for :obj: and :func: syntax #18347

simonster opened this issue Sep 3, 2016 · 5 comments
Labels
docs This change adds or pertains to documentation docsystem The documentation building system

Comments

@simonster
Copy link
Member

In the docs, there are links with syntax like:

[`RemoteChannel`](:obj:`RemoteChannel`)
[`parse`](:func:`parse`)

This syntax should be documented in CONTRIBUTING.md (if this is specific to Julia's docs) or in the manual with a link from CONTRIBUTING.md (if this is something explicitly supported in the docsystem).

@simonster simonster added the docs This change adds or pertains to documentation label Sep 3, 2016
@stevengj
Copy link
Member

stevengj commented Sep 6, 2016

This is specific to the rst syntax used for the Julia manual, and is not a general feature of the docstrings AFAIK. That is, as far as the docsystem knows, [foo](link) is just a generic link, where link is usually a URL.

That being said, it would be good to have a general way to do cross references in the docsystem, but I'd prefer a syntax that's not tied to rst.

@tkelman tkelman added the docsystem The documentation building system label Sep 6, 2016
@kshyatt
Copy link
Contributor

kshyatt commented Sep 6, 2016

Seems like http://docs.julialang.org/en/latest/manual/documentation/ would be a good place for this?

@tkelman
Copy link
Contributor

tkelman commented Sep 6, 2016

Yes, though it's worth double-checking with @MichaelHatherly if there's a nicer-looking cross-reference syntax planned (or implemented already?) in Documenter.jl which we'll likely transition to. The current format might just be an intermediate state to make the genstdlib partially-autogenerated-rst situation work.

@MichaelHatherly
Copy link
Member

It's just an intermediate state until we move to markdown docs completely. Docstring cross references in Documenter are just

[`foo`](@ref)

and section/header cross references are

[Title](@ref)

@MichaelHatherly
Copy link
Member

Closed by #18585. Cross-reference syntax is documented here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This change adds or pertains to documentation docsystem The documentation building system
Projects
None yet
Development

No branches or pull requests

5 participants