Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img src=".github/assets/tsky-logo.png" width="200" height="200">
<img src="https://raw.githubusercontent.com/tsky-dev/tsky/refs/heads/main/.github/assets/tsky-logo.png" width="200" height="200">
</p>

<h1 align="center">tsky</h1>
Expand Down Expand Up @@ -82,4 +82,4 @@ If you want to contribute to this project, please read the [CONTRIBUTING.md](CON

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
This project is licensed under the MIT License - see the [LICENSE](https://github.com/tsky-dev/tsky/blob/main/LICENSE) file for details.
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.vitepress/cache/
.vitepress/dist/
api/
11 changes: 2 additions & 9 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineConfig } from 'vitepress';
import typedocSidebar from '../api/typedoc-sidebar.json';

// https://vitepress.dev/reference/site-config
export default defineConfig({
Expand All @@ -12,15 +13,7 @@ export default defineConfig({

sidebar: [
{ text: 'Getting Started', link: '/getting-started' },
{
text: 'API Reference',
link: '/api',
items: [
{ text: 'new Tsky', link: '/api#tsky' },
{ text: 'tsky.profile', link: '/api#profile' },
{ text: 'tsky.typeahead', link: '/api#typeahead' },
],
},
{ text: 'API', items: typedocSidebar },
{
text: 'Examples',
link: '/examples',
Expand Down
28 changes: 0 additions & 28 deletions docs/api.md

This file was deleted.

1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ layout: home

hero:
name: "tsky"
image: /tsky-logo.png
text: "A Bluesky API client for nimble apps and tools"
tagline: A Bluesky API client for nimble apps and tools
actions:
Expand Down
35 changes: 20 additions & 15 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
{
"name": "@tsky/docs",
"version": "1.0.0",
"private": true,
"main": "index.js",
"scripts": {
"dev": "vitepress dev",
"build": "vitepress build",
"preview": "vitepress preview",
"test": "echo \"Error: no test specified\""
},
"devDependencies": {
"vitepress": "^1.5.0"
}
}
{
"name": "@tsky/docs",
"version": "1.0.0",
"private": true,
"main": "index.js",
"scripts": {
"predev": "typedoc",
"dev": "vitepress dev",
"prebuild": "typedoc",
"build": "vitepress build",
"preview": "vitepress preview",
"test": "echo \"Error: no test specified\""
},
"devDependencies": {
"typedoc": "^0.27.1",
"typedoc-plugin-markdown": "^4.3.0",
"typedoc-vitepress-theme": "^1.1.0",
"vitepress": "^1.5.0"
}
}
29 changes: 29 additions & 0 deletions docs/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"$schema": "https://typedoc-plugin-markdown.org/schema.json",
"entryPoints": ["../packages/client"],
"plugin": ["typedoc-plugin-markdown", "typedoc-vitepress-theme"],
"name": "Packages Example",
"entryPointStrategy": "packages",
"packageOptions": {
"includeVersion": true,
"entryPoints": ["src/*.ts"]
},
"basePath": "../packages/client/src",
"readme": "none",
"entryFileName": "index.md",
"mergeReadme": true,
"indexFormat": "table",
"useCodeBlocks": true,
"textContentMappings": {
"title.indexPage": "API Reference",
"title.memberPage": "{name}"
},
"outputs": [
{
"name": "markdown",
"path": "./api"
}
],
"hidePageHeader": false,
"logLevel": "Verbose"
}
8 changes: 0 additions & 8 deletions packages/client/src/bsky/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@ import { CredentialManager } from '@atcute/client';
import { describe, expect, it } from 'vitest';
import { Tsky } from '~/index';

const formatSecret = (secret: string | undefined) => {
if (!secret) {
throw new Error('Secret is required');
}

return secret.replace(/^tsky /g, '').trim();
};

const TEST_CREDENTIALS = {
alice: {
handle: 'alice.tsky.dev',
Expand Down
4 changes: 2 additions & 2 deletions packages/client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
"theme": "default",
"exclude": "**/+(__tests__|__mocks__)/*",
"excludePrivate": true,
"excludeProtected": true
}
"excludeProtected": true,
},
}
2 changes: 1 addition & 1 deletion packages/lex-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"scripts": {
"build": "tsc",
"clean": "rm -rf dist",
"prepublish": "pnpm run clean && pnpm run build"
"prepare": "pnpm run clean && pnpm run build"
},
"dependencies": {
"clipanion": "4.0.0-rc.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/lexicons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"build": "tsx ./scripts/generate-types.ts && tsc",
"check-version-change": "tsx ./scripts/check-version-change.ts && tsc",
"clean": "rm -rf dist && rm -rf lexicons",
"prepublish": "pnpm run clean && pnpm run build"
"prepare": "pnpm run clean && pnpm run build"
},
"devDependencies": {
"@tsky/lex-cli": "workspace:*",
Expand Down
Loading
Loading