Skip to content

Commit

Permalink
docs: generate ref docs from pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
floydspace committed Feb 2, 2024
1 parent 8b70ceb commit fbb691e
Show file tree
Hide file tree
Showing 112 changed files with 1,203 additions and 12 deletions.
21 changes: 21 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Setup
description: Perform standard setup and install dependencies using pnpm.
inputs:
node-version:
description: The version of Node.js to install
required: true
default: 18.17.0

runs:
using: composite
steps:
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Install node
uses: actions/setup-node@v3
with:
cache: pnpm
node-version: ${{ inputs.node-version }}
- name: Install dependencies
shell: bash
run: pnpm install --ignore-scripts
51 changes: 51 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Pages Flow

on:
pull_request:
branches: [main]
push:
branches: [main]

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

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: Install dependencies
uses: ./.github/actions/setup
- run: pnpm docgen
- name: Build pages Jekyll
if: github.repository_owner == 'floydspace' && github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/jekyll-build-pages@v1
with:
source: ./docs
destination: ./_site
- name: Upload pages artifact
if: github.repository_owner == 'floydspace' && github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v2

deploy:
if: github.repository_owner == 'floydspace' && github.event_name == 'push' && github.ref == 'refs/heads/main'
name: Deploy
runs-on: ubuntu-latest
timeout-minutes: 10
needs: build
permissions:
pages: write # To deploy to GitHub Pages
id-token: write # To verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
2 changes: 1 addition & 1 deletion .github/workflows/pt.yml → .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
build:
runs-on: self-hosted
runs-on: ubuntu-latest

strategy:
matrix:
Expand Down
1 change: 1 addition & 0 deletions .gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const project = new monorepo.MonorepoTsProject({
name: name,
description: "Effectful AWS",
repository: `github:${repo}`,
homepage: `https://${org}.github.io/${name}`,
authorEmail: "[email protected]",
authorName: "Victor Korzunin",
license: "MIT",
Expand All @@ -19,6 +20,10 @@ const project = new monorepo.MonorepoTsProject({
devDeps: ["@types/jest"], // needed for vscode to not complain about jest types
});

project.addTask("docgen", {
exec: "pnpm exec nx run-many --target=docgen --output-style=stream --nx-bail && node scripts/docs.mjs",
});

new YamlFile(project, ".github/FUNDING.yml", { obj: { github: org } });

new Changesets(project, {
Expand Down Expand Up @@ -124,5 +129,6 @@ new TypeScriptLibProject({
});

project.addGitIgnore(".direnv/"); // flake environment creates .direnv folder
project.addGitIgnore("docs/"); // docs are generated

project.synth();
1 change: 1 addition & 0 deletions .vscode/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
settings.json
5 changes: 5 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
remote_theme: mikearnaldi/just-the-docs
search_enabled: true
aux_links:
"GitHub":
- "//github.com/floydspace/effect-aws"
9 changes: 9 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Introduction
permalink: /
nav_order: 1
has_children: false
has_toc: false
---

## Work In Progress
2 changes: 2 additions & 0 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/client-api-gateway-management-api/.gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/client-api-gateway-management-api/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions packages/client-api-gateway-management-api/.projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions packages/client-api-gateway-management-api/docgen.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion packages/client-api-gateway-management-api/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* @since 1.0.0
*/
import { ApiGatewayManagementApiClient } from "@aws-sdk/client-apigatewaymanagementapi";
import * as Context from "effect/Context";
import * as Effect from "effect/Effect";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* @since 1.0.0
*/
import type { ApiGatewayManagementApiClientConfig } from "@aws-sdk/client-apigatewaymanagementapi";
import * as Context from "effect/Context";
import * as Effect from "effect/Effect";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* @since 1.0.0
*/
import {
ApiGatewayManagementApiServiceException,
DeleteConnectionCommand,
Expand Down Expand Up @@ -165,12 +168,14 @@ export const DefaultApiGatewayManagementApiServiceLayer =
// -------------------- Danger Zone --------------------

/**
* @since 0.1.0
* @deprecated
*/
export const BaseApiGatewayManagementApiServiceEffect =
makeApiGatewayManagementApiService;

/**
* @since 0.1.0
* @deprecated
*/
export const ApiGatewayManagementApiServiceEffect =
Expand All @@ -179,6 +184,7 @@ export const ApiGatewayManagementApiServiceEffect =
);

/**
* @since 0.1.0
* @deprecated
*/
export const DefaultApiGatewayManagementApiServiceEffect =
Expand Down
1 change: 1 addition & 0 deletions packages/client-dynamodb/.gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/client-dynamodb/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions packages/client-dynamodb/.projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/client-dynamodb/.projen/files.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions packages/client-dynamodb/docgen.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion packages/client-dynamodb/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/client-dynamodb/src/DynamoDBClientInstance.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* @since 1.0.0
*/
import { DynamoDBClient } from "@aws-sdk/client-dynamodb";
import * as Context from "effect/Context";
import * as Effect from "effect/Effect";
Expand Down
3 changes: 3 additions & 0 deletions packages/client-dynamodb/src/DynamoDBClientInstanceConfig.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* @since 1.0.0
*/
import type { DynamoDBClientConfig } from "@aws-sdk/client-dynamodb";
import * as Context from "effect/Context";
import * as Effect from "effect/Effect";
Expand Down
6 changes: 6 additions & 0 deletions packages/client-dynamodb/src/DynamoDBService.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/**
* @since 1.0.0
*/
import {
BatchExecuteStatementCommand,
BatchExecuteStatementCommandInput,
Expand Down Expand Up @@ -1175,18 +1178,21 @@ export const DefaultDynamoDBServiceLayer = DynamoDBServiceLayer.pipe(
// -------------------- Danger Zone --------------------

/**
* @since 0.1.0
* @deprecated
*/
export const BaseDynamoDBServiceEffect = makeDynamoDBService;

/**
* @since 0.1.0
* @deprecated
*/
export const DynamoDBServiceEffect = BaseDynamoDBServiceEffect.pipe(
Effect.provide(DynamoDBClientInstanceLayer),
);

/**
* @since 0.1.0
* @deprecated
*/
export const DefaultDynamoDBServiceEffect = BaseDynamoDBServiceEffect.pipe(
Expand Down
1 change: 1 addition & 0 deletions packages/client-eventbridge/.gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fbb691e

Please sign in to comment.