Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
j-Cis committed Jun 19, 2024
1 parent 67d15d5 commit 6da0f87
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 40 deletions.
9 changes: 1 addition & 8 deletions batch/NavDocs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,7 @@ export const DOCS_MD_TREE:TreeDocsMD[] = [
path: [`zanim_zaczniesz`, `srodowisko_deno`],
name: "Środowisko wykonawcze DeNo",
show: signal(false),
nest: [
{
path: [`zanim_zaczniesz`, `srodowisko_deno`,`instalacja`],
name: "instalacja",
show: signal(false),
nest: [ ]
},
],
nest: [ ],
},
{
path: [`zanim_zaczniesz`, `edytor_vscode`],
Expand Down
8 changes: 2 additions & 6 deletions docs/pl/zanim_zaczniesz/index.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
description: |
System - index.md
...
---

System - index.md.

## `System - index.md`

...
# Zanim zaczniesz
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description: |
...
---
# DeNo (/diːnoʊ/) - co to?
# DeNo (/diːnoʊ/) - co to?, i po co to?

DeNo to niezbędne [**środowisko uruchomieniowe** (wiki-en)](https://en.wikipedia.org/wiki/Runtime_system) dla programu **skanoteka-pobieracz** można je zainstalować: na **Windows**, na MacOS, na Linux.

Expand All @@ -12,57 +12,57 @@ DeNo to niezbędne [**środowisko uruchomieniowe** (wiki-en)](https://en.wikiped
DeNo ([/ˈdiːnoʊ/](http://ipa-reader.xyz/?text=%CB%88di%CB%90no%CA%8A), pronounced
`dee-no`) to [**środowisko uruchomieniowe** (wiki-en)](https://en.wikipedia.org/wiki/Runtime_system) dla [**JavaScript** (wiki-en)](https://en.wikipedia.org/wiki/JavaScript), [**TypeScript** (wiki-en)](https://en.wikipedia.org/wiki/TypeScript) i [**WebAssembly** (wiki-en)](https://en.wikipedia.org/wiki/WebAssembly), które jest oparte na [**silniku JavaScript V8** (wiki-en)](https://en.wikipedia.org/wiki/V8_(JavaScript_engine)) i języku programowania [**Rust** (wiki-en)](https://en.wikipedia.org/wiki/Rust_(programming_language)) oraz [**Tokio** (wiki-en)](https://en.wikipedia.org/wiki/Tokio_(software)). [**DeNo** (wiki-en)](https://en.wikipedia.org/wiki/Deno_(software)) współtworzył [**Ryana Dahla** (wiki-en)](https://en.wikipedia.org/wiki/Ryan_Dahl), który stworzył również Node.js.

## Instalacja DeNo na Windows
## **1.0.** Instalacja DeNo na Windows

Na Windows można zainstalować Deno na 2 sposoby: albo przez wbudowany w każdy system (**Terminal** / **Konsole**) **PowerShell**, *albo za pomocą menadżera pakietów [Chocolatey](https://chocolatey.org/packages/deno) - który nie jest wbudowany w system (wymaga dodatkowej instalacji)*

### PowerShell (Windows)
### **1.1.** PowerShell (Windows)

W pierwszej kolejności należy otworzyć (**terminal** / **konsole**) **PowerShell** na swoim komputerze, a następnie wkleić lub wpisać poniższą linijkę kodu i nacisnąć enter.

```powershell
irm https://deno.land/install.ps1 | iex
```

Istnieją co najmniej 4 metody, na otwarcie (**terminala** / **konsoli**) **PowerShell** poniżej na 3 ilustracjach przedstawiam te 4 metody na uruchomienie **PowerShell** krokpo kroku.
Istnieją co najmniej 4 metody, na otwarcie (**terminala** / **konsoli**) **PowerShell** poniżej na 3 ilustracjach przedstawiam te 4 metody na uruchomienie **PowerShell** krok po kroku.

---

![..](../../../../static/imgs/docs/PowerShellOtwieranieMetoda1.webp)
![..](../../../static/imgs/docs/PowerShellOtwieranieMetoda1.webp)

---

![..](../../../../static/imgs/docs/PowerShellOtwieranieMetoda2.webp)
![..](../../../static/imgs/docs/PowerShellOtwieranieMetoda2.webp)

---

![..](../../../../static/imgs/docs/PowerShellOtwieranieMetoda3i4.webp)
![..](../../../static/imgs/docs/PowerShellOtwieranieMetoda3i4.webp)

---

### Alternatywną metodą jest użycie menazera pakietów [Chocolatey](https://chocolatey.org/packages/deno) (Windows)
### **1.2.** Alternatywną metodą jest użycie menazera pakietów [Chocolatey](https://chocolatey.org/packages/deno) (Windows)

```powershell
choco install deno
```

## Instalacja DeNo na MacOs
## **2.0.** Instalacja DeNo na MacOs

### Shell (Mac)
### **2.1.** Shell (Mac)

```sh
curl -fsSL https://deno.land/install.sh | sh
```

### Menadżer pakietów [Homebrew](https://formulae.brew.sh/formula/deno) (Mac)
### **2.2.** Menadżer pakietów [Homebrew](https://formulae.brew.sh/formula/deno) (Mac)

```sh
brew install deno
```

## Instalacja DeNo na Linux
## **3.0.** Instalacja DeNo na Linux

### Shell / Bash (Linux)
### **3.1.** Shell / Bash (Linux)

```sh
curl -fsSL https://deno.land/install.sh | sh
Expand Down
10 changes: 0 additions & 10 deletions docs/pl/zanim_zaczniesz/srodowisko_deno/instalacja.md

This file was deleted.

6 changes: 4 additions & 2 deletions routes/docs/[...address].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,11 @@ export default define.page<typeof handler>(function DocsPage(props) {
<main class=" mt-4 min-w-0 mx-auto">
<div class="flex gap-6 md:gap-8 xl:gap-[8%] flex-col xl:flex-row md:mx-8 lg:mx-10 2xl:mx-0 lg:justify-center">
<div class="lg:order-1 min-w-0 max-w-3xl w-full">
{/*<h1 class="text-4xl text-gray-900 tracking-tight font-bold md:mt-0 px-4 md:px-0 mb-4"> {page.title} </h1>*/}
<h1 class="sticky top-0 p-4 mb-4 rounded-md drop-shadow-xl fresh-gradient text-4xl text-gray-900 tracking-tight font-bold">
{page.title}
</h1>
<div
class="markdown-body mb-8 p-6"
class="markdown-body mb-8 p-6 rounded-md "
dangerouslySetInnerHTML={{ __html: html }}
/>
<div class="mb-8">
Expand Down
2 changes: 1 addition & 1 deletion utils/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class DefaultRenderer extends Marked.Renderer {
}

image(src: string, title: string | null, alt: string | null) {
return `<img src="${src.replaceAll("../../../../static/imgs/", "/imgs/")}" alt="${alt ?? ""}" title="${title ?? ""}" />`;
return `<img src="${src.replaceAll("../../../../static/imgs/", "/imgs/").replaceAll("../../../static/imgs/", "/imgs/")}" alt="${alt ?? ""}" title="${title ?? ""}" />`;
}

code(code: string, info: string | undefined): string {
Expand Down

0 comments on commit 6da0f87

Please sign in to comment.