Skip to content

Commit

Permalink
Set up documentation site for v4 (#191)
Browse files Browse the repository at this point in the history
Set up documentation site on GitHub pages.

Build with `typedoc` which handles updated TypeScript types much better.
  • Loading branch information
sirreal authored Sep 1, 2023
1 parent 8e61edb commit da559c7
Show file tree
Hide file tree
Showing 46 changed files with 170 additions and 10,267 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ jobs:
runs-on: ubuntu-latest
environment: integration-suite

concurrency:
group: integration
cancel-in-progress: false

strategy:
fail-fast: true
max-parallel: 1
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/docs-site.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Deploy documentation site

on:
# Runs on pushes targeting the default branch
push:
branches:
- main

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: pages
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Install dependencies
run: |
npm ci
- name: Build docs site
run: |
npm run docs-site
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './gh-pages'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/gh-pages/
/types/
/node_modules/
.DS_Store
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

- Build updated docs site at https://tumblr.github.io/tumblr.js.

### Changed

- Some `@private` properties of `Client` have been changed to `#private` fields.
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![npm](https://img.shields.io/npm/v/tumblr.js)][npm-package]

The official JavaScript client library for the [Tumblr API](http://www.tumblr.com/docs/api/v2).
[Check out the detailed documentation here](https://tumblr.github.io/tumblr.js/).

## Installation

Expand Down
1 change: 0 additions & 1 deletion docs/_overrides.scss

This file was deleted.

174 changes: 0 additions & 174 deletions docs/_variables.scss

This file was deleted.

Binary file removed docs/static/favicon.ico
Binary file not shown.
Loading

0 comments on commit da559c7

Please sign in to comment.