Skip to content

Commit f569492

Browse files
committed
Initial content for MkDocs
1 parent 5c4db13 commit f569492

4 files changed

Lines changed: 111 additions & 0 deletions

File tree

.gitignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,21 @@
2424
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
2525
hs_err_pid*
2626

27+
# Python virtual environments
28+
venv/
29+
.venv/
30+
env/
31+
.env/
32+
*/venv/ # Ignore venv directories in any subdirectory too (optional)
33+
*/.venv/ # Ignore .venv directories in any subdirectory too (optional)
34+
35+
site/
36+
.cache/
37+
__pycache__/
38+
*.pyc
39+
*.pyo
40+
*.pyd
41+
*.pyw
42+
*.pyz
43+
*.pywz
44+
*.pyzw

site-docs/docs/getting-started.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Getting Started
2+
3+
This page explains how to get started with My Awesome Project.
4+
5+
## Installation
6+
7+
... Instructions ...
8+
9+
## First Steps
10+
11+
... More instructions ...

site-docs/docs/index.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Welcome to MkDocs
2+
3+
For full documentation visit [mkdocs.org](https://www.mkdocs.org).
4+
5+
## Commands
6+
7+
* `mkdocs new [dir-name]` - Create a new project.
8+
* `mkdocs serve` - Start the live-reloading docs server.
9+
* `mkdocs build` - Build the documentation site.
10+
* `mkdocs -h` - Print help message and exit.
11+
12+
## Project layout
13+
14+
mkdocs.yml # The configuration file.
15+
docs/
16+
index.md # The documentation homepage.
17+
... # Other markdown pages, images and other files.
18+
19+
20+
## 创建并激活虚拟环境:
21+
22+
```bash
23+
python -m venv .venv
24+
source .venv/bin/activate # Linux/Mac
25+
.venv\Scripts\activate # Windows
26+
```
27+
28+
3. 安装依赖:
29+
30+
```bash
31+
pip install -r requirements.txt
32+
```

site-docs/mkdocs.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Project information
2+
site_name: Gudu GSP and SQLFlow Docs
3+
site_url: https://sqlparse.github.io/sqlflow_public/ # IMPORTANT: Update this later!
4+
site_author: James
5+
site_description: >-
6+
A short description of your project documentation.
7+
8+
# Repository
9+
repo_name: 'sqlparser/sqlflow_public' # IMPORTANT: Update this later!
10+
repo_url: https://github.com/sqlparser/sqlflow_public/ # IMPORTANT: Update this later!
11+
# edit_uri: edit/main/docs/ # Optional: Link to edit pages directly on GitHub
12+
13+
# Copyright
14+
# copyright: Copyright © 2023 Your Name
15+
16+
# Theme configuration
17+
theme:
18+
name: material
19+
# Optional features - see Material for MkDocs documentation for many more
20+
features:
21+
- navigation.tabs # Use tabs for top-level sections
22+
- navigation.sections # Expand sections in the side nav
23+
- toc.integrate # Show table of contents on the left
24+
- navigation.top # Back-to-top button
25+
- search.suggest # Search autocompletion
26+
- content.code.copy # Copy button for code blocks
27+
# palette: # Optional color scheme customization
28+
# scheme: default
29+
# primary: indigo
30+
# accent: indigo
31+
32+
# Extensions (built-in)
33+
markdown_extensions:
34+
- pymdownx.highlight: # Code highlighting
35+
anchor_linenums: true
36+
- pymdownx.inlinehilite
37+
- pymdownx.snippets # Include content from other files
38+
- pymdownx.superfences # Nicer code blocks
39+
- admonition # Admonition blocks (note, warning, etc.)
40+
- toc:
41+
permalink: true # Add anchor links to headings
42+
43+
# Navigation structure (optional but recommended)
44+
nav:
45+
- Home: index.md
46+
- Getting Started: getting-started.md
47+
# Add more pages or sections here
48+
# - Section:
49+
# - Page 1: section/page1.md
50+
# - Page 2: section/page2.md

0 commit comments

Comments
 (0)