First release

Seto Elkahfi committed Mar 6, 2023 at 14:26 UTC 06d2a69ae49adc1e0ebb6e6730eb1111f4ba87ab
9 files changed +38 -57
pages/_meta.json
+3 -4
@@ -1,7 +1,6 @@
1 {
2 "index": "Introduction",
3 - "another": "Another Page",
4 - "advanced": "Advanced (A Folder)",
3 + "cli": "CLI",
4 "about": {
5 "title": "About",
6 "type": "page"
@@ -9,7 +8,7 @@
8 "contact": {
9 "title": "Contact ↗",
10 "type": "page",
12 - "href": "https://twitter.com/shuding_",
11 + "href": "https://twitter.com/smbpndk",
12 "newWindow": true
13 }
15 -}
14 +}
\ No newline at end of file
pages/about.mdx
+1 -1
@@ -1,3 +1,3 @@
1 # About
2
3 -This is the about page! This page is shown on the navbar.
3 +This is the documentation page for SmbPndk.
\ No newline at end of file
pages/advanced.mdx deleted
-3
@@ -1,3 +0,0 @@
1 -# Advanced
2 -
3 -This is the index page for the Advanced folder!
pages/advanced/satori.mdx deleted
-3
@@ -1,3 +0,0 @@
1 -# Satori
2 -
3 -Satori (悟り) is a Japanese Buddhist term for awakening, "comprehension; understanding".
pages/another.mdx deleted
-31
@@ -1,31 +0,0 @@
1 -# Another Page
2 -
3 -```js filename="demo.js" {3} copy
4 -let a = 1;
5 -
6 -console.log(a);
7 -```
8 -
9 -## Component
10 -
11 -import { useState } from 'react'
12 -
13 -{/* Import CSS modules */}
14 -import styles from '../components/counters.module.css'
15 -
16 -export const Counter = () => {
17 - const [count, setCount] = useState(0);
18 - return (
19 - <div>
20 - <button onClick={() => setCount(count + 1)} className={styles.counter}>Clicked {count} times</button>
21 - </div>
22 - );
23 -};
24 -
25 -<Counter/>
26 -
27 -## External Component
28 -
29 -import Counters from '../components/counters'
30 -
31 -<Counters />
pages/cli.mdx new
+3
@@ -0,0 +1,3 @@
1 +# CLI
2 +
3 +We use CLI program to interact with SmbPndk resources.
\ No newline at end of file
pages/cli/setup.mdx new
+23
@@ -0,0 +1,23 @@
1 +# Setup
2 +
3 +Our CLI interface is build with Rust and published on [Crates.io](https://crates.io/crates/smbpndk-cli).
4 +
5 +1. Setup your [Rust](https://www.rust-lang.org/tools/install).
6 +2. Install it globally with cargo: `cargo install smbpndk-cli`.
7 +3. Run `smb` command in your teminal to check your installation. You should get something like this:
8 +
9 +```
10 +╰─➤ smb
11 +Command line tool for creating and managing SmbPndk resources.
12 +
13 +Usage: smb [OPTIONS] <COMMAND>
14 +
15 +Commands:
16 + login Login to your account. To create an account, visit https://smbpndk.com
17 + help Print this message or the help of the given subcommand(s)
18 +
19 +Options:
20 + -l, --log-level <LOG_LEVEL> Log level: trace, debug, info, warn, error, off
21 + -h, --help Print help
22 + -V, --version Print version
23 +```
\ No newline at end of file
pages/index.mdx
+4 -8
@@ -1,11 +1,7 @@
1 -# Introduction
1 +# SmbPndk Documentation
2
3 -Welcome to Nextra! This is a basic docs template. You can use it as a starting point for your own project :)
3 +Find technical documentation for SmbPndk services, SDKs and toolkits, use cases, scenarios, and tasks. Browse user guides, developer guides, tutorials, and API references.
4
5 -## What is Nextra?
5 +## What is SmbPndk?
6
7 -A **simple**, **powerful** and **flexible** site generation framework with everything you love from Next.js.
8 -
9 -## Documentation
10 -
11 -The documentation is available at [https://nextra.site](https://nextra.site).
7 +A **simple**, **powerful** and **flexible** cloud platform for the next generation web.
theme.config.tsx
+4 -7
@@ -2,16 +2,13 @@ import React from 'react'
2 import { DocsThemeConfig } from 'nextra-theme-docs'
3
4 const config: DocsThemeConfig = {
5 - logo: <span>My Project</span>,
5 + logo: <span>SmbPndk Documentation</span>,
6 project: {
7 - link: 'https://github.com/shuding/nextra-docs-template',
7 + link: 'https://github.com/smbpndk/smbpndk-cli',
8 },
9 - chat: {
10 - link: 'https://discord.com',
11 - },
12 - docsRepositoryBase: 'https://github.com/shuding/nextra-docs-template',
9 + docsRepositoryBase: 'https://github.com/smbpndk/smbpndk-docs/tree/main',
10 footer: {
14 - text: 'Nextra Docs Template',
11 + text: 'SmbPndk',
12 },
13 }
14