Skip to content

Commit

Permalink
chore: docs readme updated and restructured (#7)
Browse files Browse the repository at this point in the history
* chore: docs readme updated and restructured

* chore: more modification

* chore: removed docs/doc folder

* chore: ignored docs/doc folder
  • Loading branch information
rjoydip authored Sep 7, 2024
1 parent c5ce107 commit aa5b9d9
Show file tree
Hide file tree
Showing 47 changed files with 899 additions and 151 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
run: npm install -g yarn

- name: 🧹 Cleanup
run: deno run --allow-read --allow-write scripts/clean/docs.ts
run: deno run --allow-read --allow-write scripts/doc/clean.ts

- name: ⏳ Run Install
run: deno run --allow-read --allow-env --allow-run scripts/run/install.ts
Expand All @@ -78,7 +78,9 @@ jobs:
run: deno run --allow-read --allow-env --allow-run scripts/run/test.ts

- name: 📜 Generate Docs
run: deno run --allow-read --allow-env --allow-run scripts/gen/doc.ts
run: |
deno run --allow-read --allow-env --allow-run scripts/doc/gen.ts
deno run --allow-read --allow-write scripts/doc/for-docs.ts
build:
name: 🏗️ Build
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,5 @@ _cache

# Custom
apps/**/docs
scripts/docs
scripts/docs
docs/doc
Empty file removed apps/deno/std/.gitkeep
Empty file.
14 changes: 13 additions & 1 deletion apps/hono/discord/runtime-bun/1276209554279108745/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
---
title: 'Hono Discord Problem 1276209554279108745'
layout: ''
---

# @hono/discord/problem-1276209554279108745

Provided solution here [https://discord.com/channels/1011308539819597844/1276209554279108745/1276928165155180565](https://discord.com/channels/1011308539819597844/1276209554279108745/1276928165155180565)
Provided solution here <https://discord.com/channels/1011308539819597844/1276209554279108745/1276928165155180565>

## Contents

* [Solution](#solution)
* [Setup](#setup)

## Solution

Without Promise

Expand Down
14 changes: 12 additions & 2 deletions apps/hono/discord/runtime-deno/1275791703797927959/readme.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
---
title: 'Hono Discord Problem 1275791703797927959'
layout: ''
---

# @hono/discord/problem-1275791703797927959

[https://discord.com/channels/1011308539819597844/1275791703797927959](https://discord.com/channels/1011308539819597844/1275791703797927959)
<https://discord.com/channels/1011308539819597844/1275791703797927959>

## Contents

* [Solution](#solution)
* [Setup](#setup)

## Solution

It's possiable to send a Blob on the body.

Provided solution here
[https://discord.com/channels/1011308539819597844/1275791703797927959/1277320939780178124](https://discord.com/channels/1011308539819597844/1275791703797927959/1277320939780178124)
<https://discord.com/channels/1011308539819597844/1275791703797927959/1277320939780178124>

## Setup

Expand Down
14 changes: 12 additions & 2 deletions apps/hono/discord/runtime-deno/1276699964776513628/readme.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
---
title: 'Hono Discord Problem 1276699964776513628'
layout: ''
---

# @hono/discord/problem-1276699964776513628

[https://discord.com/channels/1011308539819597844/1276699964776513628](https://discord.com/channels/1011308539819597844/1276699964776513628)
<https://discord.com/channels/1011308539819597844/1276699964776513628>

## Contents

* [Solution](#solution)
* [Setup](#setup)

## Solution

Provided solution here
[https://discord.com/channels/1011308539819597844/1276699964776513628/1277141663612928052](https://discord.com/channels/1011308539819597844/1276699964776513628/1277141663612928052)
<https://discord.com/channels/1011308539819597844/1276699964776513628/1277141663612928052>

```ts
import { Hono, TypedResponse } from "hono";
Expand Down
14 changes: 12 additions & 2 deletions apps/hono/github/runtime-bun/3242/readme.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
---
title: 'Hono Github Issue 3242'
layout: ''
---

# @hono/github/issue-3242

[https://github.com/honojs/hono/issue/3242](https://github.com/honojs/hono/issue/3242)
<https://github.com/honojs/hono/issue/3242>

## Contents

* [Solution](#solution)
* [Setup](#setup)

## Solution

Please check
[https://github.com/honojs/hono/issue/3242#issuecomment-2275418065](https://github.com/honojs/hono/issue/3242#issuecomment-2275418065)
<https://github.com/honojs/hono/issue/3242#issuecomment-2275418065>
of solution being provided.

> **Not working**
Expand Down
14 changes: 12 additions & 2 deletions apps/hono/github/runtime-bun/3271/readme.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
---
title: 'Hono Github Issue 3271'
layout: ''
---

# @hono/github/issue-3271

[https://github.com/honojs/hono/issue/3271](https://github.com/honojs/hono/issue/3271)
<https://github.com/honojs/hono/issue/3271>

## Contents

* [Solution](#solution)
* [Setup](#setup)

## Solution

Please check
[https://github.com/honojs/hono/issues/3271#issuecomment-2302675787](https://github.com/honojs/hono/issues/3271#issuecomment-2302675787)
<https://github.com/honojs/hono/issues/3271#issuecomment-2302675787>
of solution being provided.

> **Not working**
Expand Down
14 changes: 12 additions & 2 deletions apps/hono/github/runtime-deno/3238/readme.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
---
title: 'Hono Github Issue 3238'
layout: ''
---

# @hono/github/issue-3238

[https://github.com/honojs/hono/3238](https://github.com/honojs/hono/3238)
<https://github.com/honojs/hono/3238>

## Contents

* [Solution](#solution)
* [Setup](#setup)

## Solution

Provided solution here
[https://github.com/honojs/hono/3238#issuecomment-2278379005](https://github.com/honojs/hono/3238#issuecomment-2278379005)
<https://github.com/honojs/hono/3238#issuecomment-2278379005>

```diff
app.use(
Expand Down
12 changes: 11 additions & 1 deletion apps/hono/github/runtime-deno/3254/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
---
title: 'Hono Github Issue 3254'
layout: ''
---

# @hono/github/issue-3254

[https://github.com/honojs/hono/3254](https://github.com/honojs/hono/3254)
<https://github.com/honojs/hono/3254>

## Contents

* [Solution](#solution)
* [Setup](#setup)

## Solution

Expand Down
17 changes: 14 additions & 3 deletions apps/hono/github/runtime-node/3275/client/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
---
title: 'Hono Github Issue 3275 - Client'
layout: ''
---

# create-svelte

Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte).

## Contents

* [Creating a project](#creating-a-project)
* [Developing](#developing)
* [Building](#building)

## Creating a project

If you're seeing this, you've probably already done this step. Congrats!

```bash
```sh
# create a new project in the current directory
npm create svelte@latest

Expand All @@ -18,7 +29,7 @@ npm create svelte@latest my-app

Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:

```bash
```sh
npm run dev

# or start the server and open the app in a new browser tab
Expand All @@ -29,7 +40,7 @@ npm run dev -- --open

To create a production version of your app:

```bash
```sh
npm run build
```

Expand Down
16 changes: 13 additions & 3 deletions apps/hono/github/runtime-node/3275/readme.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
---
title: 'Hono Github Issue 3275'
layout: ''
---

# @hono/github/issue-3275

[https://github.com/honojs/hono/3275](https://github.com/honojs/hono/3275)
<https://github.com/honojs/hono/3275>

## Contents

* [Solution](#solution)
* [Setup](#setup)

## Solution

Provided solution here
[https://github.com/honojs/hono/issues/3275#issuecomment-2294830487](https://github.com/honojs/hono/issues/3275#issuecomment-2294830487)
<https://github.com/honojs/hono/issues/3275#issuecomment-2294830487>

Actual typo is [https://github.com/honojs/hono/issues/3275#issuecomment-2295853901](https://github.com/honojs/hono/issues/3275#issuecomment-2295853901)
Actual typo is <https://github.com/honojs/hono/issues/3275#issuecomment-2295853901>

```ts
define: {
Expand Down
5 changes: 5 additions & 0 deletions apps/hono/github/runtime-node/3275/server/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
title: 'Hono Github Issue 3275 - Server'
layout: ''
---

```
npm install
npm run start
Expand Down
14 changes: 12 additions & 2 deletions apps/neverthrow/runtime-deno/564/readme.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
---
title: 'Neverthrow Issue 564'
layout: ''
---

# neverthrow/issue-564

[https://github.com/honojs/neverthrow/564](https://github.com/honojs/neverthrow/564)
<https://github.com/honojs/neverthrow/564>

## Contents

* [Solution](#solution)
* [Setup](#setup)

## Comment
## Solution

Provided comment here
[564#issuecomment-2297137078](https://github.com/supermacro/neverthrow/issues/564#issuecomment-2297137078)
Expand Down
5 changes: 0 additions & 5 deletions docs/_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ import postcss from "lume/plugins/postcss.ts";
import nesting from "npm:postcss-nesting";
import sitemap from "lume/plugins/sitemap.ts";
import metas from "lume/plugins/metas.ts";
import toc from "lume_markdown_plugins/toc.ts";
import { alert } from "npm:@mdit/plugin-alert";
import ventoLang from "vento/highlightjs-vento.js";

const markdown = {
plugins: [toc, alert],
options: {
linkify: true,
},
Expand All @@ -29,9 +26,7 @@ const site = lume(
);

site
.ignore("scripts")
.copy("static", ".")
.use(toc())
.use(codeHighlight({
languages: {
vento: ventoLang,
Expand Down
3 changes: 2 additions & 1 deletion docs/_includes/layouts/base.vto
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<link rel="stylesheet" href="/styles/pages/{{ page_css }}">
{{ /if }}

<script src="/main.js" type="module"></script>
<script src="/custom/inject.js" type="module"></script>
</head>
<body>
{{ include "templates/navbar.vto" }}
Expand All @@ -63,6 +63,7 @@
mediaMatch(mediaQuery).addEventListener("change", (event) => {
storeTheme(event.matches);
});
});
</script>
</body>
</html>
4 changes: 2 additions & 2 deletions docs/_includes/layouts/landing.vto
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ page_css: landing.css
bottom: 0;
width: 5em;
height: 5em;
animation-name: firecircle;
animation-name: langCircle;
will-change: transform;
}
.badge::after {
Expand Down Expand Up @@ -165,7 +165,7 @@ page_css: landing.css
margin-left: 2.8em;
margin-bottom: 1.1em;
}
@keyframes firecircle {
@keyframes langCircle {
0% {
transform: translateY(0) scale(1);
}
Expand Down
12 changes: 0 additions & 12 deletions docs/_includes/styles/components/navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -132,18 +132,6 @@
}
}
}

@media (max-width: 768px) {
.navbar-search {
min-width: auto;
min-height: auto;
}

.DocSearch-Container {
position: fixed !important;
/* This overrides the docsearch modal `position: absolute`, fixes position issue on chrome (mobile) */
}
}
}
}
}
13 changes: 0 additions & 13 deletions docs/_includes/styles/components/toc.css

This file was deleted.

Loading

0 comments on commit aa5b9d9

Please sign in to comment.