add docs website config (#251)
* add docs website config * move files in doc/ to docs/
This commit is contained in:
		
							
								
								
									
										30
									
								
								.github/workflows/publish-docs.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								.github/workflows/publish-docs.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,30 @@
 | 
			
		||||
name: Publish docs via GitHub Pages
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
      - master
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  deploy:
 | 
			
		||||
    runs-on: ubuntu-18.04
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v2
 | 
			
		||||
 | 
			
		||||
      - name: Setup Python
 | 
			
		||||
        uses: actions/setup-python@v1
 | 
			
		||||
        with:
 | 
			
		||||
          python-version: '3.7'
 | 
			
		||||
          architecture: 'x64'
 | 
			
		||||
 | 
			
		||||
      - name: Install dependencies
 | 
			
		||||
        run: |
 | 
			
		||||
          pip install --upgrade pip
 | 
			
		||||
          pip install -r docs/requirements.txt
 | 
			
		||||
      - name: Build
 | 
			
		||||
        run: mkdocs build -f docs/mkdocs.yml
 | 
			
		||||
 | 
			
		||||
      - name: Deploy
 | 
			
		||||
        uses: peaceiris/actions-gh-pages@v3
 | 
			
		||||
        with:
 | 
			
		||||
          github_token: ${{ secrets.PUBLISH_DOCS_TOKEN }}
 | 
			
		||||
          publish_dir: site
 | 
			
		||||
@ -21,7 +21,7 @@ OceanBase Database supports the entire core business of Alipay and the core syst
 | 
			
		||||
 | 
			
		||||
## Quick start
 | 
			
		||||
 | 
			
		||||
Refer to the [Get Started guide](doc/quick-start-en.md) to try out OceanBase Database.
 | 
			
		||||
Refer to the [Get Started guide](docs/en/quick-start-en.md) to try out OceanBase Database.
 | 
			
		||||
 | 
			
		||||
## Documentation
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										20
									
								
								docs/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								docs/README.md
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,20 @@
 | 
			
		||||
# OceanBase Documentation
 | 
			
		||||
Welcome to the OceanBase documentation!
 | 
			
		||||
 | 
			
		||||
This directory stores all the source files of OceanBase documentation website.
 | 
			
		||||
 | 
			
		||||
## Starting a server locally
 | 
			
		||||
 | 
			
		||||
OceanBase documentation website is built with [MkDocs](https://www.mkdocs.org/). To install all dependencies, run:
 | 
			
		||||
 | 
			
		||||
    $ pip install -r ./requirements.txt
 | 
			
		||||
 | 
			
		||||
Generate the site, and start a server locally:
 | 
			
		||||
 | 
			
		||||
    $ mkdocs serve
 | 
			
		||||
 | 
			
		||||
Open up http://127.0.0.1:8000/ in your browser, and you'll see the default home page.
 | 
			
		||||
 | 
			
		||||
## Contributing
 | 
			
		||||
 | 
			
		||||
See [How to Contribute](../CONTRIBUTING.md).
 | 
			
		||||
							
								
								
									
										3
									
								
								docs/index.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								docs/index.md
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,3 @@
 | 
			
		||||
# 欢迎使用 OceanBase 文档
 | 
			
		||||
 | 
			
		||||
OceanBase is an enterprise distributed relational database with high availability, high performance, horizontal scalability, and compatibility with SQL standards.
 | 
			
		||||
							
								
								
									
										10
									
								
								docs/mkdocs.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								docs/mkdocs.yml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
			
		||||
site_name: OceanBase 手册
 | 
			
		||||
repo_url: 'https://github.com/oceanbase/oceanbase'
 | 
			
		||||
repo_name: 'OceanBase'
 | 
			
		||||
edit_uri: 'edit/master/docs/'
 | 
			
		||||
docs_dir: './'
 | 
			
		||||
site_dir: '../site'
 | 
			
		||||
theme:
 | 
			
		||||
  name: 'material'
 | 
			
		||||
nav:
 | 
			
		||||
  - Home: 'index.md'
 | 
			
		||||
							
								
								
									
										10
									
								
								docs/requirements.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								docs/requirements.txt
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
			
		||||
mkdocs==1.1.2
 | 
			
		||||
mkdocs-material
 | 
			
		||||
mkdocs-macros-plugin
 | 
			
		||||
mike
 | 
			
		||||
mdx_truly_sane_lists
 | 
			
		||||
mkdocs_latest_release_plugin
 | 
			
		||||
mkdocs-git-revision-date-localized-plugin
 | 
			
		||||
weasyprint
 | 
			
		||||
mkdocs-with-pdf
 | 
			
		||||
qrcode
 | 
			
		||||
		Reference in New Issue
	
	Block a user