docs
This commit is contained in:
12
.editorconfig
Normal file
12
.editorconfig
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
ij_continuation_indent_size = 2
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
||||||
|
|
||||||
|
[*.{kt, kts}]
|
||||||
|
ij_kotlin_imports_layout = *
|
||||||
56
.github/workflows/docs.yml
vendored
Normal file
56
.github/workflows/docs.yml
vendored
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
name: docs
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
env:
|
||||||
|
JAVA_VERSION: 17
|
||||||
|
PYTHON_VERSION: 3.x
|
||||||
|
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
id-token: write
|
||||||
|
pages: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docs:
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Configure JDK
|
||||||
|
uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
distribution: 'zulu'
|
||||||
|
java-version: ${{ env.JAVA_VERSION }}
|
||||||
|
|
||||||
|
- name: Install Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: ${{ env.PYTHON_VERSION }}
|
||||||
|
|
||||||
|
- name: Install MkDocs Material
|
||||||
|
run: pip install mkdocs-material
|
||||||
|
|
||||||
|
- name: Generate Docs
|
||||||
|
run: ./build_docs.sh
|
||||||
|
|
||||||
|
- name: Upload to GitHub Pages
|
||||||
|
uses: actions/upload-pages-artifact@v3
|
||||||
|
with:
|
||||||
|
path: site
|
||||||
|
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v4
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
## 版本记录
|
## 版本日志
|
||||||
|
|
||||||
#### v3.2.0:2024-07-16
|
#### v3.2.0:2024-07-16
|
||||||
* 更新CameraScan至v1.2.0
|
* 更新CameraScan至v1.2.0
|
||||||
@@ -167,7 +167,7 @@ public class QRCodeScanActivity extends BarcodeCameraScanActivity {
|
|||||||
|
|
||||||
> **BarcodeCameraScanFragment** 的使用方式与之类似。
|
> **BarcodeCameraScanFragment** 的使用方式与之类似。
|
||||||
|
|
||||||
更多使用详情,请查看[app](app)中的源码使用示例或直接查看[API帮助文档](https://jitpack.io/com/github/jenly1314/ZXingLite/latest/javadoc/)
|
更多使用详情,请查看[app](app)中的源码使用示例或直接查看[API帮助文档](https://jenly1314.github.io/ZXingLite/api/)
|
||||||
|
|
||||||
### 其他
|
### 其他
|
||||||
|
|
||||||
@@ -199,7 +199,9 @@ dependencies {
|
|||||||
#### [CameraScan](https://github.com/jenly1314/CameraScan) 一个简化扫描识别流程的通用基础库。
|
#### [CameraScan](https://github.com/jenly1314/CameraScan) 一个简化扫描识别流程的通用基础库。
|
||||||
#### [ViewfinderView](https://github.com/jenly1314/ViewfinderView) ViewfinderView一个取景视图:主要用于渲染扫描相关的动画效果。
|
#### [ViewfinderView](https://github.com/jenly1314/ViewfinderView) ViewfinderView一个取景视图:主要用于渲染扫描相关的动画效果。
|
||||||
|
|
||||||
## 版本记录
|
<!-- end -->
|
||||||
|
|
||||||
|
## 版本日志
|
||||||
|
|
||||||
#### v3.2.0:2024-07-16
|
#### v3.2.0:2024-07-16
|
||||||
* 更新CameraScan至v1.2.0
|
* 更新CameraScan至v1.2.0
|
||||||
@@ -233,7 +235,7 @@ dependencies {
|
|||||||
* 优化ImageAnalyzer中YUV数据的处理
|
* 优化ImageAnalyzer中YUV数据的处理
|
||||||
* 更新CameraX至v1.2.2
|
* 更新CameraX至v1.2.2
|
||||||
|
|
||||||
#### [查看更多版本记录](change_log.md)
|
#### [查看更多版本日志](CHANGELOG.md)
|
||||||
|
|
||||||
## 赞赏
|
## 赞赏
|
||||||
如果您喜欢ZXingLite,或感觉ZXingLite帮助到了您,可以点右上角“Star”支持一下,您的支持就是我的动力,谢谢 :smiley:
|
如果您喜欢ZXingLite,或感觉ZXingLite帮助到了您,可以点右上角“Star”支持一下,您的支持就是我的动力,谢谢 :smiley:
|
||||||
|
|||||||
@@ -6,5 +6,6 @@ plugins {
|
|||||||
id 'com.android.application' version '8.1.2' apply false
|
id 'com.android.application' version '8.1.2' apply false
|
||||||
id 'com.android.library' version '8.1.2' apply false
|
id 'com.android.library' version '8.1.2' apply false
|
||||||
id 'org.jetbrains.kotlin.android' version '1.8.10' apply false
|
id 'org.jetbrains.kotlin.android' version '1.8.10' apply false
|
||||||
|
id 'org.jetbrains.dokka' version '1.8.20' apply false
|
||||||
id 'com.vanniktech.maven.publish' version '0.25.3' apply false
|
id 'com.vanniktech.maven.publish' version '0.25.3' apply false
|
||||||
}
|
}
|
||||||
17
build_docs.sh
Executable file
17
build_docs.sh
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
# Generate the API docs
|
||||||
|
./gradlew dokkaHtml
|
||||||
|
|
||||||
|
mkdir -p docs/api
|
||||||
|
mv zxing-lite/build/dokka/html/* docs/api
|
||||||
|
|
||||||
|
# Copy in special files that GitHub wants in the project root.
|
||||||
|
sed '/<!-- end -->/q' README.md > docs/index.md
|
||||||
|
cat CHANGELOG.md | grep -v '## 版本日志' > docs/changelog.md
|
||||||
|
cp GIF.gif docs/
|
||||||
|
|
||||||
|
# Build the site locally
|
||||||
|
mkdocs build
|
||||||
86
mkdocs.yml
Normal file
86
mkdocs.yml
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
# Project information
|
||||||
|
site_name: ZXingLite
|
||||||
|
site_url: https://jenly1314.github.io/ZXingLite/
|
||||||
|
site_description: "CameraScan for Android"
|
||||||
|
site_author: Jenly
|
||||||
|
remote_branch: gh-pages
|
||||||
|
edit_uri: ""
|
||||||
|
|
||||||
|
# Repository
|
||||||
|
repo_name: ZXingLite
|
||||||
|
repo_url: https://github.com/jenly1314/ZXingLite
|
||||||
|
|
||||||
|
# Copyright
|
||||||
|
copyright: 'Copyright © 2018 - 2024 Jenly'
|
||||||
|
|
||||||
|
# Configuration
|
||||||
|
theme:
|
||||||
|
name: 'material'
|
||||||
|
favicon: https://jenly1314.github.io/favicon.png
|
||||||
|
logo: https://jenly1314.github.io/medias/logo.png
|
||||||
|
icon:
|
||||||
|
repo: fontawesome/brands/github
|
||||||
|
language: zh
|
||||||
|
palette:
|
||||||
|
- media: "(prefers-color-scheme: light)"
|
||||||
|
scheme: default
|
||||||
|
primary: teal
|
||||||
|
accent: blue
|
||||||
|
toggle:
|
||||||
|
icon: octicons/sun-24
|
||||||
|
name: "切换到深色模式"
|
||||||
|
- media: "(prefers-color-scheme: dark)"
|
||||||
|
scheme: slate
|
||||||
|
primary: teal
|
||||||
|
accent: blue
|
||||||
|
toggle:
|
||||||
|
icon: octicons/moon-24
|
||||||
|
name: "切换到浅色模式"
|
||||||
|
features:
|
||||||
|
- navigation.instant
|
||||||
|
- navigation.instant.progress
|
||||||
|
- navigation.tabs
|
||||||
|
- content.code.copy
|
||||||
|
|
||||||
|
extra:
|
||||||
|
social:
|
||||||
|
- icon: material/home-circle
|
||||||
|
link: https://jenly1314.github.io/
|
||||||
|
- icon: simple/github
|
||||||
|
link: https://github.com/jenly1314/
|
||||||
|
- icon: simple/gitee
|
||||||
|
link: https://gitee.com/jenly1314/
|
||||||
|
- icon: fontawesome/solid/paper-plane
|
||||||
|
link: mailto:jenly1314@gmail.com
|
||||||
|
|
||||||
|
markdown_extensions:
|
||||||
|
- smarty
|
||||||
|
- footnotes
|
||||||
|
- meta
|
||||||
|
- toc:
|
||||||
|
permalink: true
|
||||||
|
- attr_list
|
||||||
|
- pymdownx.betterem:
|
||||||
|
smart_enable: all
|
||||||
|
- pymdownx.caret
|
||||||
|
- pymdownx.emoji:
|
||||||
|
emoji_index: !!python/name:materialx.emoji.twemoji
|
||||||
|
emoji_generator: !!python/name:materialx.emoji.to_svg
|
||||||
|
- pymdownx.inlinehilite
|
||||||
|
- pymdownx.magiclink
|
||||||
|
- pymdownx.smartsymbols
|
||||||
|
- pymdownx.superfences
|
||||||
|
- pymdownx.tilde
|
||||||
|
- pymdownx.tabbed:
|
||||||
|
alternate_style: true
|
||||||
|
- tables
|
||||||
|
|
||||||
|
# Plugins
|
||||||
|
plugins:
|
||||||
|
- search
|
||||||
|
|
||||||
|
nav:
|
||||||
|
- '概览': index.md
|
||||||
|
- 'API文档': api/index.html
|
||||||
|
- '版本日志': changelog.md
|
||||||
|
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'com.android.library'
|
id 'com.android.library'
|
||||||
id 'org.jetbrains.kotlin.android'
|
id 'org.jetbrains.kotlin.android'
|
||||||
|
id 'org.jetbrains.dokka'
|
||||||
id 'com.vanniktech.maven.publish'
|
id 'com.vanniktech.maven.publish'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user