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

Included files do not show up on rubydoc.info but do locally #341

Closed
michaelklishin opened this issue May 30, 2011 · 10 comments
Closed

Included files do not show up on rubydoc.info but do locally #341

michaelklishin opened this issue May 30, 2011 · 10 comments

Comments

@michaelklishin
Copy link
Contributor

I just refreshed ruby-amqp/amqp documentation on rubydoc.info and all the included examples in this guide are not displayed. They do show up locally, through. I tried to rm -rf doc and restarted YARD server just in case, but to no avail.

Is this a rubydoc.info setup issue or am I doing something wrong?

@michaelklishin
Copy link
Contributor Author

This also affects other guides, including Getting Started :( How can I help with investigating the issue?

@lsegal
Copy link
Owner

lsegal commented May 30, 2011

If it only happens on rubydoc.info, it's a rubydoc.info issue. We have support tickets on the site. That said, what do you mean by not being displayed? All of those links work for me...

@michaelklishin
Copy link
Contributor Author

There are embedded examples that use include:file:. They are not displayed.

@michaelklishin
Copy link
Contributor Author

I understand what is going on now: I use file paths repative to repository root. rubydoc.info sets up --docroot explicitly.

Given that my directory layout is this:

  • docs/GettingStarted.textile
  • examples/guides/getting_started/01_hello_world.rb

how do I reference that example from the guide? (without knowing what the --docroot is, of course) Is there any way to do "relative to this file" kind of addressing? I will switch back to embedded gists now, it is sad that such a great feature cannot really be used without knowing docroot of the YARD server.

@lsegal
Copy link
Owner

lsegal commented May 30, 2011

Includes should be relative to the root of your projects. {include:file:examples/guides/getting_started/01_hello_world.rb}

@michaelklishin
Copy link
Contributor Author

That's exactly what I used, for example. It worked fine locally and didn't render examples on rubydoc.info. I replaced all the examples with embedded gists for now, but will try to switch a couple back to include:file: and post an update here.

@lsegal
Copy link
Owner

lsegal commented May 30, 2011

The examples/ directory is likely getting deleted, since we clear out all unused source files to save space on a checkout. Open a support ticket on rubydoc.info since this is an issue with the site, not yard.

@lsegal lsegal closed this as completed May 30, 2011
@michaelklishin
Copy link
Contributor Author

Agreed. By support ticket do you mean an issue in the rubydoc.info github project?

@lsegal
Copy link
Owner

lsegal commented May 30, 2011

That works too

@michaelklishin
Copy link
Contributor Author

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants