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

Support .inv generation to enable integration with sphinx generated sites #123

Closed
lextm opened this issue Jan 14, 2016 · 4 comments
Closed

Comments

@lextm
Copy link
Contributor

lextm commented Jan 14, 2016

I have several sites generated by sphinx, but want to integrate them with a site generated by docfx.

Since reStructuredText won't be supported (per #104), is it possible for a docfx project to emit .inv file so that integration with sphinx generated sites can be achieved?

A sphinx generated site can use intersphinx to add references to another sphinx generated site,

http://www.sphinx-doc.org/en/stable/ext/intersphinx.html

The .inv file can be parsed by a gist like this,

https://gist.github.com/epc/4118456

I am not sure how it should be generated though, but docutils is open source so there should be a way to dig that out.

Once docfx can generate .inv for a site, then it can be used by sphinx generated sites and achieve tight integration with each other.

ASP.NET 5 and .NET Core 5 have their contents running on sphinx and reStructuredText, so probably this feature can help them too.

@chenkennt
Copy link
Contributor

Hi lextm, we understand the need for cross reference between docfx projects and with other documentation sites. To support this, we plan to generate a map file that contains all files' information like url and title (actually very similar to the concept of inventory file). It should contain enough information so you'll be able write some custom code to convert it to an inv file that can be consumed be Sphinx.

@lextm
Copy link
Contributor Author

lextm commented Jan 14, 2016

@chenkennt, thanks. Look forward to that.

@johnneycao
Copy link

#240

@chenkennt
Copy link
Contributor

DocFX now generates a xrefmap.yml which includes all topics that have uid, which can be used by other docfx projects for external reference. You can also write your own code to convert it to a file that can be consumed by Sphinx. Take a look at this file as an example of how xrefmap file looks like.

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

3 participants