Git Product home page Git Product logo

docs's Introduction

Visit docs.openfn.org to view the documentation site.

Contributing to this documentation site

Visit https://docs.openfn.org/documentation/writing-docs/.

This website is built using Docusaurus, a static website generator that uses Markdown and Javascript.

  • To create new docs pages, add markdown files (or JS files) to the /docs folder.
  • To view those new pages via the navigation, add links to them in the header, footer, or sidebars.
  • Note that page ids (which are required in sidebar.js are either set explicitly or automatically generated by docusaurus as the filename, sans extension.)
./sidebars.js
./sidebars-adaptors.js
./docusaurs.config.js

Local Development

Installation

Unix-like systems

asdf install
corepack enable
yarn install

Windows

Install nvm-windows. Make sure your node version matches the one specified in .tool-versions.

Starting your docs site server

yarn start

This command builds the Adaptor docs from OpenFn/adaptors, starts a local development server, and opens up a browser window. Most changes are reflected live without having to restart the server.

Start without rebuilding adaptor docs

yarn start-offline

This command skips the adaptor docs step, which requires an active internet connection.

Building the job library

yarn generate-library

This command pulls public job data from OpenFn.org to create a local "job library".

Building the adaptors docs from the monorepo

yarn start:dev

Or, if the server is running:

yarn generate-adaptors -m

Ensure that the OPENFN_ADAPTORS_REPO env var is set and points to the local monorepo.

See (github.com/OpenFn/adaptors/wiki/How-to-test-docs-changes)[https://github.com/OpenFn/adaptors/wiki/How-to-test-docs-changes] for more details

Build and serve for full-featured testing

yarn generate-adaptors
yarn generate-library
yarn build
yarn serve

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

Builds to main will automatically be deployed to docs.openfn.org. This branch is protected, but we welcome pull requests!

docs's People

Contributors

taylordowns2000 avatar aleksa-krolls avatar mtuchi avatar ritazagoni avatar jedbgold avatar amberrignell avatar josephjclark avatar dependabot[bot] avatar daissatou2 avatar j-feldman avatar zacck avatar chaiwa-berian avatar alexadevegvar avatar daissatou avatar stuartc avatar lakhassane avatar bentleycook avatar dannyroberts avatar aishahassen avatar dharssini avatar hnyende avatar muhammad-levi avatar waffle-iron avatar beeeswax avatar willip avatar

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.