Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated docs #408

Merged
merged 41 commits into from
Nov 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
bde6d0c
docs: setup nextra
belgattitude Jun 16, 2023
8390600
docs: setup nextra
belgattitude Jun 16, 2023
f517e9e
Merge branch 'main' into updated-docs
belgattitude Jun 16, 2023
733dcbc
docs: setup nextra
belgattitude Jun 16, 2023
1dfbd2e
docs: setup nextra
belgattitude Jun 16, 2023
b14b4a1
docs: setup nextra
belgattitude Jun 16, 2023
87c2990
Merge branch 'main' into updated-docs
belgattitude Jul 8, 2023
5f9e341
Merge branch 'main' into updated-docs
belgattitude Jul 8, 2023
4756074
feat: improved documentation
belgattitude Jul 8, 2023
73ae47e
feat: improved documentation
belgattitude Jul 9, 2023
370d72f
feat: improved documentation
belgattitude Jul 9, 2023
8cf3b23
feat: improved documentation
belgattitude Jul 9, 2023
9681170
feat: improved documentation
belgattitude Jul 16, 2023
2db3eca
Merge branch 'main' into updated-docs
belgattitude Jul 22, 2023
70cb919
Merge branch 'main' into updated-docs
belgattitude Jul 22, 2023
b652e7e
Merge branch 'main' into updated-docs
belgattitude Jul 24, 2023
a447c9c
chore: lock refreshed
belgattitude Jul 24, 2023
362a407
Merge branch 'main' into updated-docs
belgattitude Jul 24, 2023
e788a64
Merge branch 'main' into updated-docs
belgattitude Aug 2, 2023
f8f0a97
feat: doc website
belgattitude Aug 12, 2023
a55e1b8
Merge branch 'main' into updated-docs
belgattitude Sep 2, 2023
86dabd8
Merge branch 'main' into updated-docs
belgattitude Sep 2, 2023
e4aa7e3
Merge branch 'main' into updated-docs
belgattitude Sep 13, 2023
07975f8
feat: wip
belgattitude Sep 16, 2023
2544a33
Merge branch 'main' into updated-docs
belgattitude Oct 28, 2023
ea709d6
Merge branch 'main' into updated-docs
belgattitude Nov 18, 2023
bb4eb15
Merge branch 'main' into updated-docs
belgattitude Nov 18, 2023
b1b0d42
Merge branch 'main' into updated-docs
belgattitude Nov 18, 2023
ebc6b82
Merge branch 'main' into updated-docs
belgattitude Nov 18, 2023
d1dc9a7
Merge branch 'main' into updated-docs
belgattitude Nov 18, 2023
3ef479d
Merge branch 'main' into updated-docs
belgattitude Nov 18, 2023
04a1646
Merge branch 'main' into updated-docs
belgattitude Nov 25, 2023
b1d150e
Merge branch 'main' into updated-docs
belgattitude Nov 25, 2023
211143c
chore(dev-deps): fix missing tailwind
belgattitude Nov 25, 2023
d969fbb
docs: small wip
belgattitude Nov 25, 2023
5d3b672
docs: small wip
belgattitude Nov 25, 2023
5ffc4f2
docs: small wip
belgattitude Nov 25, 2023
7107f7a
docs: small wip
belgattitude Nov 25, 2023
b161050
docs: small wip
belgattitude Nov 25, 2023
6c80c46
docs: small wip
belgattitude Nov 25, 2023
bdff53e
docs: small wip
belgattitude Nov 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/ci-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI-docs-website

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- '**'
paths:
- '*.lock'
- 'docs/**'

permissions:
contents: read

jobs:
generate-docs-website:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
env:
NEXTJS_IGNORE_ESLINT: true
NEXTJS_IGNORE_TYPECHECK: true
NEXT_DISABLE_SOURCEMAPS: true
NEXT_TELEMETRY_DISABLED: true

steps:
- uses: actions/checkout@v3

- name: ⚙️ Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: 📥 Monorepo install
uses: ./.github/actions/yarn-nm-install

- name: 🏗 Build docs
run: yarn workspace httpx-docs run build
3 changes: 2 additions & 1 deletion .github/workflows/ci-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ on:
- '**'
paths-ignore:
- 'examples/**'
- 'docs/**'

permissions:
contents: read

jobs:
test:
test-packages:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
12 changes: 6 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ nx-cloud.env

# dependencies
**/node_modules
.yarn/*
!.yarn/patches
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
**/.yarn/*
!**/.yarn/patches
!**/.yarn/releases
!**/.yarn/plugins
!**/.yarn/sdks
!**/.yarn/versions
.pnp.*

# testing
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
**/build/**
**/tmp/**
**/generated/**

**/out/**
877 changes: 877 additions & 0 deletions .yarn/releases/yarn-4.0.0-rc.45.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ If applicable:
| `yarn g:clean` | Clean builds in all workspaces |
| `yarn g:check-dist` | Ensure build dist files passes es2017 (run `g:build` first). |
| `yarn g:check-size` | Ensure build files are within size limit (run `g:build` first). |
| `yarn g:build-doc` | Build documentation (generally api doc) |
| `yarn g:build-api-doc` | Build documentation (generally api doc) |
| `yarn clean:global-cache` | Clean tooling caches (eslint, jest...) |
| `yarn deps:check --dep dev` | Will print what packages can be upgraded globally (see also [.ncurc.yml](https://github.com/belgattitude/httpx/blob/main/.ncurc.yml)) |
| `yarn deps:update --dep dev` | Apply possible updates (run `yarn install && yarn dedupe` after) |
Expand Down
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Collection of "do one thing" typescript libraries.
## "do one thing" collection.

## [@httpx/exception](https://github.com/belgattitude/httpx/tree/main/packages/exception#readme)
### [@httpx/exception](https://github.com/belgattitude/httpx/tree/main/packages/exception#readme)

HTTP response errors with default message, stacktrace, instanceof, error cause support.
No deps, esm starts at 350b, tops at 1.4kb (esm). Includes convenience typeguards, optional
error context and a built-in json (de-)serializer to allow usage across browser and
node environments (SSR, RSC...) or for logging purpose.
HTTP error responses with default message, instanceof, stack and error cause support.
Lightweight, esm starts at 350b. Includes convenience typeguards, optional
contextual info and a built-in serializer to cover cross-environments challenges (RSC, SSR...).

[![npm](https://img.shields.io/npm/v/@httpx/exception?style=for-the-badge&label=Npm&labelColor=444&color=informational)](https://www.npmjs.com/package/@httpx/exception)
[![changelog](https://img.shields.io/static/v1?label=&message=changelog&logo=github&style=for-the-badge&labelColor=444&color=informational)](https://github.com/belgattitude/httpx/blob/main/packages/exception/CHANGELOG.md)
Expand All @@ -14,7 +13,7 @@ node environments (SSR, RSC...) or for logging purpose.
[![maintainability](https://img.shields.io/codeclimate/maintainability/belgattitude/httpx?label=Quality&logo=code-climate&style=for-the-badge&labelColor=444)](https://codeclimate.com/github/belgattitude/httpx)
[![downloads](https://img.shields.io/npm/dm/@httpx/exception?style=for-the-badge&labelColor=444)](https://www.npmjs.com/package/@httpx/exception)

## [@httpx/dsn-parser](https://github.com/belgattitude/httpx/tree/main/packages/dsn-parser#readme)
### [@httpx/dsn-parser](https://github.com/belgattitude/httpx/tree/main/packages/dsn-parser#readme)

DSN & JDBC string parser with query params support in a light and modern package.

Expand Down
60 changes: 60 additions & 0 deletions docs/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/**
* Specific eslint rules for this workspace, learn how to compose
* @link https://github.com/belgattitude/perso/tree/main/packages/eslint-config-bases
*/

// Workaround for https://github.com/eslint/eslint/issues/3458
require('@belgattitude/eslint-config-bases/patch/modern-module-resolution');

const {
getDefaultIgnorePatterns,
} = require('@belgattitude/eslint-config-bases/helpers');

module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: 'tsconfig.json',
},
ignorePatterns: [...getDefaultIgnorePatterns()],
extends: [
'@belgattitude/eslint-config-bases/typescript',
'@belgattitude/eslint-config-bases/sonar',
'@belgattitude/eslint-config-bases/regexp',
'@belgattitude/eslint-config-bases/jest',
'@belgattitude/eslint-config-bases/react',
'@belgattitude/eslint-config-bases/rtl',
'@belgattitude/eslint-config-bases/tailwind',
// Add specific rules for nextjs
'next/core-web-vitals',
// Apply prettier and disable incompatible rules
'@belgattitude/eslint-config-bases/prettier-plugin',
],
rules: {
// optional overrides per project
'@typescript-eslint/require-await': 'off',
},
overrides: [
{
files: ['next.config.mjs', 'src/lib/env/*.mjs'],
rules: {
'import/order': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
},
},
{
files: ['theme.config.tsx'],
rules: {
'react-hooks/rules-of-hooks': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
},
},
{
files: ['tailwind.config.ts'],
rules: {
'@typescript-eslint/naming-convention': 'off',
},
},
],
};
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
out
Loading