Giter Site home page Giter Site logo

asana / developer-docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ringcentral/slate

12.0 10.0 28.0 76.11 MB

Documentation generator for the Asana API

Home Page: https://asana.com/developers

License: Apache License 2.0

Ruby 0.53% Shell 0.46% JavaScript 72.79% HTML 1.46% CSS 23.36% Makefile 0.11% SCSS 1.27% Dockerfile 0.01%

developer-docs's Introduction

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.

developer-docs's People

Contributors

anfedorov avatar atair avatar aw-asana avatar bootstraponline avatar ccankov avatar chrissrogers avatar corydasana avatar cvkef avatar dependabot-preview[bot] avatar djpowers avatar dlackty avatar greysteil avatar jjschnei avatar jv-asana avatar kartikasana avatar katelu-asana avatar lord avatar maks3w avatar marcguyer avatar masterodin avatar mikephung191 avatar mikeralphson avatar mlee-asana avatar mmorearty avatar praecipula avatar realityking avatar rezanachmad avatar rossgrambo-zz avatar steveryb avatar victorquinn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

developer-docs's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.