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

Add an index page containing all symbols #91

Closed
sebastian-lenz opened this issue Apr 25, 2015 · 8 comments
Closed

Add an index page containing all symbols #91

sebastian-lenz opened this issue Apr 25, 2015 · 8 comments
Labels
enhancement Improved functionality

Comments

@sebastian-lenz
Copy link
Member

This demand has been raised by Daniel in #70. Still have no clue where it should live in the navigation and how it should look like.

@balupton
Copy link

balupton commented Nov 21, 2018

What about the sidebar? As right now, when someone generates their documentation, the viewer of the documentation needs to know to look in the sidebar, and go click crazy to get everything. If the sidebar contained everything, then the documentation becomes more accessible to the user as the navigation becomes more obvious and immediate.

Would also knock off #182

@balupton
Copy link

balupton commented Nov 21, 2018

Actually seems http://typedoc.org/api/index.html already has this. But for some reason, locally I do not:

"our:meta:docs": "typedoc --exclude '**/*test*' --name \"$npm_package_name\" --readme ./README.md --out ./docs ./source",

and my tsconfig as I'm using babel

{
  "compilerOptions": {
    "target": "esnext",
    "moduleResolution": "node",
    "allowJs": true,
    "noEmit": true,
    "strict": true,
    "isolatedModules": true,
    "esModuleInterop": true
  },
  "include": [
    "source"
  ]
}

produces when opening index.html directly (which unbeknownst to me at the time disables search)

screen shot 2018-11-21 at 11 30 59 am

or when accessed directly via a local server (which reenables search)

screen shot 2018-11-21 at 11 30 49 am

clicking "index" which isn't intuitive, eventually gets me the definition of eachr, and a link to IteratorCallback

screen shot 2018-11-21 at 11 33 08 am

Which requires a click on IteratorCallback to get its details:

screen shot 2018-11-21 at 11 33 57 am

Requiring 3 clicks for the user to hopefully access the full documentation.

@Gerrit0
Copy link
Collaborator

Gerrit0 commented Nov 21, 2018

The sidebar behavior depends on the "mode" option, try setting it to "file" with --mode file

@balupton
Copy link

The sidebar behavior depends on the "mode" option, try setting it to "file" with --mode file

Where are the modes documented? As --mode doesn't exist at http://typedoc.org/guides/usage/

@Gerrit0
Copy link
Collaborator

Gerrit0 commented Nov 21, 2018

The TypeDoc site is horribly out of date at the moment. @aciccarello is working on updating it and pulling it into the main repo on the add-docs branch, which should help prevent this from happening again.

The mode option is documented in the readme, and in the --help output. It should also be added to the site guides once the add-docs branch is merged.

@balupton
Copy link

balupton commented Nov 21, 2018

No worries. Thanks for the update.

In case it helps: For the @bevry packages we are in the process of moving all our hand written docs to gitbook and redirecting our websites there. Even for @docpad, a static site generator which website is currently DocPad will also be moved to gitbook. As our time is so limited for open source work it is more effective and meaningful for us to focus purely on the libraries and docs, rather than the boilerplate for them. Perhaps move the website to gitbook (they support custom domains), then move the docs from the readme to it, so the readme just has a link to gitbook.

Sent with GitHawk

@Gerrit0 Gerrit0 closed this as completed Nov 28, 2020
@balupton
Copy link

Why was this closed?

@Gerrit0
Copy link
Collaborator

Gerrit0 commented Nov 29, 2020

I was cleaning up issues which have had very little interest expressed in them + no activity in a couple years, I figured if anyone cared about them, they'd ask why they were closed and I could reopen :)

In this case, I also think that this request is mostly obsolete with the work done in 0.20. In 0.20 TypeDoc asks the compiler for exported symbols and only documents those. If you only provide one entry point, then the sidebar will include those exported symbols directly. (Example: In @bevry/list, npm i typedoc@beta, npx typedoc source/index.ts produces:

image

If there is a namespace, symbols inside those namespace aren't shown until you go to the namespace... which seems reasonable to me.

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

No branches or pull requests

3 participants