Repository navigation
Documentation / guides we should write #3399
Description
This is another stab at atom/api#6, but in more concrete terms of guides / docs I think we should write to place on atom.io.
Many of the APIs these rely on are very in flux at the moment, though, so we'll probably need to write them near or after the API freeze.
Bit of background: links to problems / talk about package writing
- http://gnuu.org/2014/03/10/my-week-with-githubs-atom-editor/
- https://discuss.atom.io/t/how-to-speed-up-your-packages/10903
- https://discuss.atom.io/t/looking-for-best-practices-for-iterative-development-on-atom/10889
Guides We Should Write
Events
Events seem to be the number one issue folks have with the API. There is confusion around
- Which classes produce which events?
- What is the difference between events and commands?
- What is a subscription object?
- Subscribe? on? which one? Where am I? It's dark in here!
This guide (and new APIs!) should address these things.
Serialization
- WTF is it?
- How does it work?
- How to use it?
Inter-package communication
(API needs to be written!)
- How to use
- Best practices
Testing your package
- Setting it up
- Best practices
Grammar scopes
Creating a language package? A syntax theme? It's impossible to know what scopes to generate / select for in common cases. What are the scopes for a function? Punctuation? Class names? I have no idea. Currently, the only way to know what to do is to look through several other lang packages and themes to get an idea of the scopes involved.
Decorations
Currently the best docs are the example package and the blog post.
List of cookbooks / recipes
Cookbooks / Recipes (have not decided on naming) are small snippets that solve a specific problem. Often package authors (and me!) want to know "how do I do That Common Thing that I saw in package Y". They can also be an entry point into a related guide.
This list should be exhaustive. If you have ideas, let me know and I will add them.
- Observing all the editors
- Observing the active editor / pane item
- Adding a pane item in a tab (like settings view)
- Adding a panel (like find and replace)
- Subscribing to a command
- Highlighting a line / gutter-number (decoration)
- Adding something to the status bar
- How to get user input (like jump to line)
- How to display a filterable list in a dialog (like command palette)
Changes we should make to existing guides
In Creating a package
- This could provide more of an overview and be the entry point / index into other guides (like the one on events or serialization).
- Section about activation events
Less concrete ideas for guides
Here are some ideas from atom/api#6 and from the summit that are less fleshed out.
- Making your package fast: common pitfalls
- Debugging your package
- Package manager guide
- Theme manager
- Syntax/Grammar
- Editor
- Workspace/Panes
- apm
- ~/.atom
- cross-platform
- dependency management in packages (where do I get the things I need?)
Updates
Writing these is getting closer, so I will be updating the body of this issue as comments roll in and we think of things.
Activity
[-]Missing documentation / guides[/-][+]Documentation / guides we should write[/+]batjko commentedon Aug 27, 2014
I feel good about this.
I'm thinking specific guides and cookbook-type stuff might also find a home on atom.io, rather than as part of the bundled docs.
The latter could then contain links to atom.io and would need much fewer updates from then on, while atom.io remains dynamic as needed.
benogle commentedon Aug 27, 2014
Everything here will totally be on atom.io. It'll basically be on this page: https://atom.io/docs/latest/
batjko commentedon Aug 27, 2014
Ah, but I was thinking to then remove it from the repository / download bundle (especially since the docs are poised to grow), leaving only links to that atom.io page. You know, removing duplication and unnecessary files in the main repo etc?
benogle commentedon Aug 27, 2014
I guess I'm not sure on organization at this point. Atom.io generates those pages from the md files in the repo. We could have a separate repo, and as part of the release process, pull them together and place them in the GitHub release like we do with the docs now (see
atom-docs.zipin https://github.com/atom/atom/releases/tag/v0.124.0)batjko commentedon Aug 27, 2014
Yes that was my thinking, its own
github.com/atom/docsrepo, which atom.io could generate from, or something along those lines.Anyway, I like where this is going. 👍
eddieantonio commentedon Nov 4, 2014
There is not enough plain-English documentation available for globals injected (or replaced) into
windowfor specs (see spec-helper.coffee). I'm talking about things like advanceClock, setTimeout and its cronies. This issue goes way back to #906.I was thinking of starting on this documentation myself in my own fork, but I'm not sure where I should put it. Either in
docs/as a loose Markdown file or as TomDoc inspec/spec-helpers.coffee(though how would it make its way into the atom.io docs site?). Could anybody guide me on this?benogle commentedon Nov 4, 2014
@eddieantonio You're totally right. We're not great at docs right now. We have talked about and are planning on pulling the docs out into a separate repo. We haven't really started it yet. For now, you can add it to https://github.com/atom/atom/blob/master/docs/writing-specs.md
benogle commentedon Mar 16, 2015
We have new docs. Closing
lock commentedon Jan 23, 2019
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!