Skip to content

Commit

Permalink
docs: add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
futrime committed Jan 3, 2025
1 parent 18c89f3 commit c45ef17
Show file tree
Hide file tree
Showing 12 changed files with 180 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
on:
pull_request:
paths:
- .github/workflows/build-docs.yml
- docs/**
push:
paths:
- .github/workflows/build-docs.yml
- docs/**
workflow_dispatch:

jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- run: |
pip install -r requirements.txt
working-directory: docs
- run: |
mkdocs build -f docs/mkdocs.yml -d ../site
- uses: actions/upload-pages-artifact@v3
with:
path: site/

deploy:
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build-docs
permissions:
id-token: write
pages: write
runs-on: ubuntu-latest
steps:
- uses: actions/deploy-pages@v4
id: deployment
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
on:
push:
pull_request:
paths:
- .github/workflows/build.yml
- Lip/**
- Lip.Tests/**
push:
paths:
- .github/workflows/build.yml
- Lip/**
- Lip.Tests/**
workflow_dispatch:

jobs:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
.vscode/

/.venv/
/site/
Binary file added docs/img/favicon.ico
Binary file not shown.
Binary file added docs/img/logo.webp
Binary file not shown.
83 changes: 83 additions & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
site_name: lip Docs
repo_url: https://github.com/futrime/lip

docs_dir: .
exclude_docs: |
/mkdocs.yml
/requirements.txt
nav:
- User Guide:
- user-guide/index.md
- user-guide/getting-started.md
- user-guide/installation.md
- user-guide/basic-use.md
- Topic Guides: []
- Reference: []
- Commands: []
- Packaging Guide:
- packaging-guide/index.md
- Marketplace: https://bedrinth.com

theme:
name: material
features:
- navigation.tabs
- navigation.tabs.sticky
favicon: img/favicon.ico
logo: img/logo.webp
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
primary: white
toggle:
icon: material/brightness-7
name: Switch to dark mode

- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/brightness-4
name: Switch to light mode

markdown_extensions:
- abbr
- admonition
- attr_list
- def_list
- footnotes
- md_in_html
- toc
- tables
- pymdownx.arithmatex
- pymdownx.betterem
- pymdownx.caret
- pymdownx.mark
- pymdownx.tilde
- pymdownx.critic
- pymdownx.details
- pymdownx.emoji
- pymdownx.highlight:
auto_title: true
linenums: true
- pymdownx.inlinehilite
- pymdownx.keys
- pymdownx.smartsymbols
- pymdownx.snippets
- pymdownx.superfences
- pymdownx.tabbed:
alternate_style: true
- pymdownx.tasklist

plugins:
- i18n:
languages:
- locale: en
default: true
name: English

- locale: zh
name: 中文
nav_translations: {}

- search
2 changes: 2 additions & 0 deletions docs/packaging-guide/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# About Packaging

30 changes: 30 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
babel==2.16.0
certifi==2024.12.14
charset-normalizer==3.4.1
click==8.1.8
colorama==0.4.6
ghp-import==2.1.0
idna==3.10
Jinja2==3.1.5
Markdown==3.7
MarkupSafe==3.0.2
mergedeep==1.3.4
mkdocs==1.6.1
mkdocs-get-deps==0.2.0
mkdocs-material==9.5.49
mkdocs-material-extensions==1.3.1
mkdocs-static-i18n==1.2.3
packaging==24.2
paginate==0.5.7
pathspec==0.12.1
platformdirs==4.3.6
Pygments==2.18.0
pymdown-extensions==10.13
python-dateutil==2.9.0.post0
PyYAML==6.0.2
pyyaml_env_tag==0.1
regex==2024.11.6
requests==2.32.3
six==1.17.0
urllib3==2.3.0
watchdog==6.0.0
1 change: 1 addition & 0 deletions docs/user-guide/basic-use.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Basic Use
1 change: 1 addition & 0 deletions docs/user-guide/getting-started.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Getting Started
10 changes: 10 additions & 0 deletions docs/user-guide/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# About lip

lip is the general package installer that lets you install packages from any Git repository. Developers can use lip to share, manage, and install packages across different projects and platforms.

If you want to learn about how to use lip, check out the following resources:

- [Getting Started](getting-started.md)
- [Packaging Guide](../packaging-guide/index.md)

If you find bugs, need help, or want to talk to the developers, please report them on the [GitHub Issues](https://github.com/futrime/lip/issues) page.
Empty file added docs/user-guide/installation.md
Empty file.

0 comments on commit c45ef17

Please sign in to comment.