You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2022/10/23 20:12:08 UTC

[GitHub] [lucene] jebnix opened a new issue, #11870: Create a Markdown based documentation

jebnix opened a new issue, #11870:
URL: https://github.com/apache/lucene/issues/11870

   ### Description
   
   I think it would be much easier to read and maintain markdown-based documentation, instead of/in addition to the Javadoc one.
   This way we would be able to generate sites from it.
   This is a pretty big suggestion and change to Apache Lucene, but I think it'll be worth it.
   The initial idea is to unify all of the main Javadoc package summaries to one folder in which each Javadoc package summary (e.g. https://lucene.apache.org/core/9_4_0/core/org/apache/lucene/search/package-summary.html#package.description) is a markdown page.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] rmuir commented on issue #11870: Create a Markdown based documentation

Posted by GitBox <gi...@apache.org>.
rmuir commented on issue #11870:
URL: https://github.com/apache/lucene/issues/11870#issuecomment-1373144282

   There is some markdown processed in this way for the release: https://lucene.apache.org/core/9_4_0/
   
   Source code is here: https://github.com/apache/lucene/blob/main/lucene/documentation/src/markdown/index.template.md
   
   I tend to agree that the long package summaries might be better as markdown, these package summaries don't necessarily get a lot of visibility via tools like IDEs. Same goes with the module overviews such as https://lucene.apache.org/core/9_4_2/core/index.html . Both of these tend to be the places with the more verbose explanations.
   
   But I also agree with some of Dawid's thoughts too.
   * if these summaries/overview docs are no longer javadoc but instead markdown, it would be better to allow these to be organized per-module rather than having everything in `lucene/documentation`
   * a little concerned about navigation: having the content in javadocs does this easy: just click "Package" or "Overview". If we markdown and javadocs, I don't know what it would feel like when browsing through it.
   * maintenance is a serious concern. one thing that really helps is that we run some serious javadocs linting and broken-link detector across all of our docs.  helps fail the build if things are out of date. we'd at least want to make sure we still do broken-links detection across any markdown.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] jebnix commented on issue #11870: Create a Markdown based documentation

Posted by GitBox <gi...@apache.org>.
jebnix commented on issue #11870:
URL: https://github.com/apache/lucene/issues/11870#issuecomment-1386297416

   @uschindler That's nice, but I personally miss two things about the Lucene repo:
   1. The ability to find the documentation in a central place (that makes the contribution much easier). That's the way most repositories manage project documentation. The Javadoc in my opinion is good for code-related notes, and separate docs (that are currently inside `package-info.java`) - inside a `docs/` dir.
   2. Some generated **good-looking** documentation site. I suggest Docusaurus usage, so the docs will get written in MD, and look like [this for example](https://redux.js.org/).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] dweiss commented on issue #11870: Create a Markdown based documentation

Posted by GitBox <gi...@apache.org>.
dweiss commented on issue #11870:
URL: https://github.com/apache/lucene/issues/11870#issuecomment-1292543030

   To be honest - I'd stick to plain javadoc in code documentation. It's supported by the tools, it's the standard everyone expects and it's there when you're browsing the source code. I think the problem with the current javadocs is that they are outdated or try to explain too much, perhaps, not the format they're written in.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] jebnix commented on issue #11870: Create a Markdown based documentation

Posted by GitBox <gi...@apache.org>.
jebnix commented on issue #11870:
URL: https://github.com/apache/lucene/issues/11870#issuecomment-1292531335

   @msokolov @dweiss As active contributors, any opinions?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] almogtavor commented on issue #11870: Create a Markdown based documentation

Posted by "almogtavor (via GitHub)" <gi...@apache.org>.
almogtavor commented on issue #11870:
URL: https://github.com/apache/lucene/issues/11870#issuecomment-1416785510

   @rmuir @dweiss @uschindler Do you think that a PR in this subject that creates the initial Docusaurus website with some basic Getting Started sections will get accepted? I generally totally agree that it's needed and I think that if Lucene would have such `/docs` dir and a fit good-looking website, people would care more about updating it all the time. 
   
   Pages like [this](https://lucene.apache.org/core/9_0_0/highlighter/org/apache/lucene/search/highlight/package-summary.html) would get more exposure, and therefore wouldn't include sections such as `New features 22/12/2004`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] rmuir commented on issue #11870: Create a Markdown based documentation

Posted by GitBox <gi...@apache.org>.
rmuir commented on issue #11870:
URL: https://github.com/apache/lucene/issues/11870#issuecomment-1373155758

   The various overview.html's might even be the easiest ones to think about how markdown could work, rather than package summaries.
   
   These are currently maintained as html files, and passed to the javadoc command with `-overview file.html`. Maybe they could be maintained as README.md files instead that get preprocessed to overview.html? 
   
   I like the idea that browsing lucene/core/src/java just in github would then show the overview automatically, but... all the links to any classes are gonna be broken without support javadoc, so i'm not sure of the value we get from markdown over just keeping them as html. Plus the additional .md->.html indirection would add some complexity over the current files. But I guess possibly it might be easier to contribute to?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] dweiss commented on issue #11870: Create a Markdown based documentation

Posted by GitBox <gi...@apache.org>.
dweiss commented on issue #11870:
URL: https://github.com/apache/lucene/issues/11870#issuecomment-1372325036

   What I meant is that this documentation should really go into modules/ classes where it belongs and can be updated/ maintained together with the code. I honestly don't believe the effort to write a separate manual will be kept in sync with the code. I am with you on many libraries having excellent documentation - it'd be great to have it. The truth is, it's a huge effort not many people will have time for (or the interest in doing, compared to writing new features or tinkering with the code). Sorry to sound so pessimistic - you're welcome to do anything you like, of course - that's the beauty of open source. 
   
   Also, perhaps chatgpt can emit this automatically in a few months if you point it at the source code?... :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] uschindler commented on issue #11870: Create a Markdown based documentation

Posted by GitBox <gi...@apache.org>.
uschindler commented on issue #11870:
URL: https://github.com/apache/lucene/issues/11870#issuecomment-1373330425

   There is markdown (or commonmark) support coming for JDK javadoc: https://bugs.openjdk.org/browse/JDK-8298405
   
   So at some point we might replace those overview HTML files by markdown, when we changed to java 21!
   
   If we still want to do this now, we may need to use the already existing markdown converter for the global documentation also in modules and convert those overview.md to overview.html before executing javadoc. But this might not work if javadoc does not allow to give some folder in build dir as source for resources. But for now I would stick with HTML in source tree.
   
   For more general documentation the root documentation module is fine. It supports markdown and static resources.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] jebnix commented on issue #11870: Create a Markdown based documentation

Posted by GitBox <gi...@apache.org>.
jebnix commented on issue #11870:
URL: https://github.com/apache/lucene/issues/11870#issuecomment-1372225809

   @dweiss But currently, it's very hard and unintuitive to learn Lucene as a new user. In most libraries these days there is a docusaurus-like engine that generates a pretty nice and intuitive website that enables the user to find all of the beginners to intermediate information he needs about using the library, all in one unified place. That's also much more comfortable for future contributors to find the docs. Currently, the docs are spread all over the Lucene code base. That's nice when you dig in, but it makes it really hard to find out where're the docs for new users.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org