Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Documentation / guides we should write #3399

Closed

Description

@benogle

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

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

  1. changed the title [-]Missing documentation / guides[/-] [+]Documentation / guides we should write[/+] on Aug 27, 2014
  2. batjko commented on Aug 27, 2014

    @batjko
    Contributor

    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.

  3. benogle commented on Aug 27, 2014

    @benogle
    ContributorAuthor

    Everything here will totally be on atom.io. It'll basically be on this page: https://atom.io/docs/latest/

  4. batjko commented on Aug 27, 2014

    @batjko
    Contributor

    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?

  5. benogle commented on Aug 27, 2014

    @benogle
    ContributorAuthor

    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.zip in https://github.com/atom/atom/releases/tag/v0.124.0)

  6. batjko commented on Aug 27, 2014

    @batjko
    Contributor

    Yes that was my thinking, its own github.com/atom/docs repo, which atom.io could generate from, or something along those lines.
    Anyway, I like where this is going. 👍

  7. eddieantonio commented on Nov 4, 2014

    @eddieantonio

    There is not enough plain-English documentation available for globals injected (or replaced) into window for 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 in spec/spec-helpers.coffee (though how would it make its way into the atom.io docs site?). Could anybody guide me on this?

  8. benogle commented on Nov 4, 2014

    @benogle
    ContributorAuthor

    @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

  9. benogle commented on Mar 16, 2015

    @benogle
    ContributorAuthor

    We have new docs. Closing

  10. lock commented on Jan 23, 2019

    @lock

    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!

  11. locked as resolved and limited conversation to collaborators on Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions