Comments (10)
👍 A nice side effect will be that building documentation for lots of projects at the same time will be easy, just make a fake project and run docs.all
.
from ex_doc.
When a dependency has a source_url
I don't think we should generate docs for it but rather just link to the docs maintained by the project.
from ex_doc.
Those docs may be of a different version though, so there could be API differences.
from ex_doc.
Right. And there is also the benefit of having offline docs.
from ex_doc.
Those are both good points. We can probably only solve the docs versioning issue when we have a package manager.
from ex_doc.
I'll take a stab at this.
from ex_doc.
Once we have this a logical follow-up feature would be to extend autolinking to dependency projects.
from ex_doc.
Quick progress report on this: I have a basic index working, it looks like this:
I'm just not satisfied with the code structure yet. I'm currently having the html formatter write docs/$project/.ex_doc_project_info
files which look like this:
# ExDoc generated project information, do not edit
[project: "json", version: "0.2.6", documented_modules: [{JSON, nil}, {JSON.Decode, nil}, {JSON.Decode.Error, :exception}, {JSON.Decode.UnexpectedEndOfBufferError, :exception}, {JSON.Decode.UnexpectedTokenError, :exception}, {JSON.Dynamo.Filter, nil}, {JSON.Dynamo.Filter.FilterResultObject, nil}, {JSON.Dynamo.Filter.ProcessFilteredResponse, nil}, {JSON.Encode, :protocol}, {JSON.Encode.Error, :exception}, {JSON.Numeric, nil}]]
When --no-index
isn't passed to ex_doc the html formatter will read all .ex_doc_project_info
files under the docs dir and use them to generate the project index.
Thing is though, reading and writing these files isn't really a job for the html formatter, nor is it really a job for the retriever. I'm still mulling over how to properly integrate those project infos in the ex_doc structure. Sooner or later I'll probably find a way, but that's what's holding up this feature at the moment.
from ex_doc.
Couldn't you write the file from the ExDoc
module?
from ex_doc.
Hmm, that might be Columbus' egg (is that even a valid English idiom). Thanks.
from ex_doc.
Related Issues (20)
- ex_doc > 0.30.5 generating incorrect HTML output for ex_money HOT 2
- Build precompiled ExDoc scripts on every release using GitHub Actions
- Introduce search across all of HexDocs HOT 33
- Admonition block content in cheat sheets has incorrect background colour HOT 4
- Refactor autolinking typespecs
- Add a redirect or non-indexed extras page HOT 4
- [PROPOSAL] generate docs for structs HOT 1
- Search for terms beginning with colon (e.g. ":if") HOT 5
- Support converting GitHub alerts to admonitions? HOT 1
- searching on `inner_content` doesn't give any useful results
- no results at all for `phx-update`
- Add "Edit Documentation" link HOT 3
- Adding formal support for filenames HOT 6
- Markdown not supported within <details> element. HOT 4
- Using keybind to focus search flickers the sidebar HOT 1
- Auto link with anchor is not working HOT 6
- Mobile regression: menu icon no longer sticky HOT 6
- URL in browser not updating when clicking link icon on iOS HOT 3
- @since tag not rendered correctly for Erlang source Types? HOT 1
- Add a title attribute to sidebar links HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ex_doc.