Skip to content

Commit

Permalink
add wasmo icon and technical documentation to build the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zwiterrion committed Nov 22, 2023
1 parent acfcba9 commit 4388267
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 26 deletions.
37 changes: 15 additions & 22 deletions docs/documentation/README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,29 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Getting Started

First, run the development server:
Install the dependencies

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```
yarn install
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
Launch the documentation server

You can start editing the page by modifying `app/page.js`. The page auto-updates as you edit the file.
```
yarn run dev
```

This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
Build production bundle

## Learn More
```
yarn run buid
```

To learn more about Next.js, take a look at the following resources:
Generate the search indexation content

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
```
npx pagefind --site "out" --output-path "out/dist"
```

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
3 changes: 2 additions & 1 deletion docs/documentation/components/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ function Layout({ children, next, metadata, previous }) {
return <>
<header className="sticky top-2 z-50 flex items-center justify-between px-3 py-2 bg-white" onClick={() => handleOpen(false)}>
<div className="flex items-center flex-grow">
<a href="" className="text-3xl font-bold tracking-tight text-slate-1200">
<a href="" className="text-3xl font-bold tracking-tight text-slate-1200 flex items-center gap-2">
<img src="/wasmo/wasmo.png" width={32} />
Wasmo Docs
</a>
</div>
Expand Down
Binary file added docs/documentation/public/wasmo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui/public/wasmo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ui/src/FilesLogo.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const LOGOS = {
go: <Go style={{ height: 22, width: 22 }} />,
opa: <OPA style={{ height: 22, width: 22 }} />,
github: <Github style={{ height: 22, width: 22 }} />,
logo: <img src={window.location.origin + "/android-chrome-512x512.png"}
logo: <img src={window.location.origin + "/wasmo.png"}
style={{ width: 42, userSelect: 'none' }} />,
release: <Release style={{ height: 22, width: 22 }} />
};
Expand Down
4 changes: 2 additions & 2 deletions ui/src/TabsManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ function SidebarHeader({ version }) {
userSelect: 'none',
fontWeight: 'bold',
textTransform: 'uppercase',
background: '#f9b000',
background: '#000',
color: 'white',
height: 42
}} className="p-2 m-0 d-flex align-items-center">Wasmo <span style={{ fontSize: '1rem', marginTop: 'auto' }} className="ms-auto">{version}</span></h1> : <div className='d-flex justify-content-center p-1'>
}} className="p-2 m-0 d-flex align-items-center"><img src="./wasmo.png" width={32} />Wasmo <span style={{ fontSize: '1rem', marginTop: 'auto' }} className="ms-auto">{version}</span></h1> : <div className='d-flex justify-content-center p-1'>
{LOGOS.logo}
</div>
}
Expand Down

0 comments on commit 4388267

Please sign in to comment.