Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Asana/developer-docs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Asana: API Documentation


Build Status Docker Version

NOTE: This repository has been archived and is no longer being maintained. Asana's API documentation is available at https://developers.asana.com/docs. To access up-to-date versions of Asana's OpenAPI Specifications, visit the openapi repository.

OpenAPI Spec

The Asana OpenAPI spec is currently used to generate our documentation. You can also use it to generate mock servers, client code, and many other things. You can read more about OpenAPI specs here.

The up-to-date Asana OpenAPI spec is in this repository. Here's a link. See openapi for up-to-date OpenAPI Specifications.

If you find any issues or have any suggestions for our OpenAPI spec. Please create an issue in this repo or create a PR with the changes!

Development

Commands should be run from the root of this repository.

Requirements

You must be running macOS, and have homebrew available.

You can install all dependencies for building locally by running the following:

./bin/configure

This will install the following:

Local Development

To build once:

make

To reset the working directory:

make clean

To build continouously upon changes and launch the local web server:

./bin/watch_and_serve_local_dev

Documentation will be accessible here (also included in the build output):

Making Changes to Changes

Internal Asanas: See https://app.asana.com/0/77076599077/1122503737028047/f and https://app.asana.com/0/0/1200652548580470/f before making any updates.

If the content you're changing is static (not generated from the OpenAPI spec):

If the content you're changing is in the OpenAPI spec:

  1. modify the OAS in CODEZ
    • to quickly test something, make the changes in def/asana_oas.yaml. Just remember to put the changes in CODEZ if you want them to not be overridden on the next build.
  2. run make.
  3. verify your changes with git diff. Run
  4. run ./bin/watch_and_serve_local_dev
  5. confirm the changes in the local dev environment by going to the url in the bin/watch_and_serve_local_dev output

Merging these changes into master causes them to be deployed.

Making Changes to Styles

Make changes in source/stylesheets/_variables.scss because the changes here will be valid with future versions of Slate.

If you need to make more complex css changes, edit screen.css.scss or print.css.scss but keep in mind that these will need to be merged for new versions of Slate.

Deployment (GitHub Pages)

This should happen automatically when changes are merged into this repo.

If you need to do this manually, then run the deploy.sh script. This will use your local git credentials and local /build folder to push a build to a branch named gh-pages (Where the docs are hosted).

Architecture

The public OpenAPI spec is located at defs/asana_oas.yaml

To generate markdown from the spec, we use a forked widdershins.

FAQ

Why did we fork widdershins? For our use case, we needed things like denormalizing and dereferencing. We tried doing this to the spec & using an unforked widdershins, but as we progressed with client library generation, it made more sense to keep a clean spec and do this doc-specific editing in the tooling. A potential future is pulling out this logic to a "openapi spec transformer" to prep the spec for widdershins, but there will be a trade-offs to consider.

About

Documentation generator for the Asana API

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 72.7%
  • CSS 23.3%
  • HTML 1.6%
  • SCSS 1.3%
  • Ruby 0.5%
  • Shell 0.5%
  • Other 0.1%