Skip to content

Commit

Permalink
Merge pull request #3 from TremblingV5/init_doc_site
Browse files Browse the repository at this point in the history
init doc site
  • Loading branch information
xujiajun authored Dec 26, 2023
2 parents e072229 + 8501b1f commit f0587bd
Show file tree
Hide file tree
Showing 54 changed files with 35,879 additions and 344 deletions.
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior(Be specific!):
1. [...]
2. [...]
3. [...]

Give sample code if you can.

**Expected behavior**
A clear and concise description of what you expected to happen.

**What actually happens**
A clear and concise description of what actually happens.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**please complete the following information :**
- OS: [e.g. Ubuntu 16.04]
- NutsDB Version [e.g. 0.4.0]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
41 changes: 41 additions & 0 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Deploy Docs to Github Pages

on:
push:
branches:
- main

permissions:
contents: write

jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build website
run: yarn build

# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.DOCS_TOKEN }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./build
# The following lines assign commit authorship to the official
# GH-Actions bot for deploys to `gh-pages` branch:
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
# The GH actions bot is used by default if you didn't specify the two fields.
# 你可以用自己的用户信息替换它们。
user_name: github-actions[bot]
user_email: github-actions[bot]@users.noreply.github.com
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Dependencies
/node_modules

# Production
/build

# Generated files
.docusaurus
.cache-loader

# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

.idea
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,29 @@
# nutsdb-docs
# Website

This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.

### Installation

```
$ yarn
```

### Local Development

```
$ yarn start
```

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

### Build

```
$ yarn build
```

This command generates static content into the `build` directory and can be served using any static contents hosting service.

### Deployment

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
8 changes: 0 additions & 8 deletions _coverpage.md

This file was deleted.

1 change: 0 additions & 1 deletion _navbar.md

This file was deleted.

3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
};
6 changes: 6 additions & 0 deletions blog/authors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
xujiajun:
name: xujiajun
title: xujiajun
url: https://github.com/xujiajun
image_url: https://avatars.githubusercontent.com/u/6065007?v=4

File renamed without changes.
3 changes: 0 additions & 3 deletions doc/zh-cn/_sidebar.md

This file was deleted.

37 changes: 0 additions & 37 deletions doc/zh-cn/example.md

This file was deleted.

54 changes: 0 additions & 54 deletions doc/zh-cn/option.md

This file was deleted.

61 changes: 0 additions & 61 deletions doc/zh-cn/transaction.md

This file was deleted.

3 changes: 0 additions & 3 deletions doc/zh-en/_sidebar.md

This file was deleted.

37 changes: 0 additions & 37 deletions doc/zh-en/example.md

This file was deleted.

Loading

0 comments on commit f0587bd

Please sign in to comment.