Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
entropy-cloud committed Apr 5, 2024
2 parents c3c7ae7 + b0aea27 commit b474648
Show file tree
Hide file tree
Showing 11 changed files with 391 additions and 551 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/sync-docs-to-community.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Sync Docs to Nop Community

on:
push:
branches:
- master
paths:
- docs/*

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
sync-docs-to-community:
runs-on: ubuntu-latest
env:
NOP_PROJECT_DOCS_REPO: nop-platform/nop-entropy-docs
steps:
- name: Create temp dirs
run: mkdir docs-src docs-dist
- uses: actions/checkout@v3
with:
path: docs-src
- uses: actions/checkout@v3
with:
repository: ${{ env.NOP_PROJECT_DOCS_REPO }}
persist-credentials: false
path: docs-dist
- name: Copy docs
run: |
rm -rf docs-dist/src
mv docs-src/docs docs-dist/src
- name: Commit changes
run: |
cd docs-dist
git config --local user.email "[email protected]"
git config --local user.name "Nop Assistant"
git add .
git commit -m "chore: update docs via GitHub Actions"
- uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.NOP_PROJECT_DOCS_PAT }}
repository: ${{ env.NOP_PROJECT_DOCS_REPO }}
directory: docs-dist
force: true
28 changes: 16 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,19 @@ _dump
/nop-tool/src/test/java/io/nop/tool/log/TestLogProcessor.java
/nop-all-for-spring/dependency-reduced-pom.xml

/package.json
/scripts/ksio
/.knosys
/.knosys/sites/*/.cache/
/.knosys/sites/*/.asset-cache/
/.knosys/sites/*/.sass-cache/
/.knosys/sites/*/*/ksio/
/.knosys/sites/*/_assets/*/ksio/
/.knosys/sites/*/_assets/*/knosys/
/.knosys/sites/*/_data/knosys/
/.knosys/sites/*/_knosys/
/.knosys/sites/*/_site/
package-lock.json
node_modules/

# KnoSys sites
/.knosys/sites/default/source/_data/knosys/
/.knosys/sites/default/source/_data/local/repos.yml
/.knosys/sites/default/source/knosys/
/.knosys/sites/default/source/_posts/*
!/.knosys/sites/default/source/_posts/hello-world.md
/.knosys/sites/default/themes/
/.knosys/sites/default/public/
/.knosys/sites/default/.deploy*/
/.knosys/sites/default/_multiconfig.yml
/.knosys/sites/default/Thumbs.db
/.knosys/sites/default/db.json
/.knosys/sites/default/package.json
11 changes: 11 additions & 0 deletions .knosys/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"command": "./scripts/ksio",
"site": {
"default": {
"generator": "hexo",
"data": {
"project-nop-entropy": "./docs"
}
}
}
}
164 changes: 164 additions & 0 deletions .knosys/sites/default/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/

# Site
title: Nop Entropy
subtitle: 基于可逆计算原理从零开始构建的新一代低代码平台
description: Nop Platform 2.0 是基于可逆计算原理从零开始构建的新一代低代码平台,它致力于克服低代码平台无法摆脱穷举法的困境,从理论层面超越组件技术,有效的解决粗粒度软件复用的问题。
keywords: Nop,Nop平台,Nop 平台,Nop Platform,Nop社区,Nop 社区,Nop Community,可逆计算,软件构造理论,低代码,lowcode,low-code,low code,低代码平台,lcdp,软件工程
author: canonical
language: zh-CN
timezone: Asia/Shanghai

# URL
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
url: https://example.io
permalink: posts/:title/
permalink_defaults:
pretty_urls:
trailing_index: false
trailing_html: false

# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:

# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link:
enable: true # Open external links in new tab
field: site # Apply to the whole site
exclude: ''
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
enable: true
line_number: true
auto_detect: false
tab_replace: ''
wrap: true
hljs: false
prismjs:
enable: false
preprocess: true
line_number: true
tab_replace: ''

# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
index_generator:
path: '/'
per_page: 10
order_by: -date

# Category & Tag
default_category: uncategorized
category_map:
tag_map:

# Metadata elements
## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
meta_generator: true

# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss
## updated_option supports 'mtime', 'date', 'empty'
updated_option: 'mtime'

# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page

# Include / Exclude file(s)
## include:/exclude: options only apply to the 'source/' folder
include:
exclude:
ignore:

# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: nop-project
theme_config:
header:
navs:
- text: 指南
url: /projects/nop-entropy/docs/
footer:
links:
- text: 指南
url: /projects/nop-entropy/docs/

ksio:
defaults:
layout:
page:
values:
ksio_asset_css:
- stylesheets/ksio/vendors/share
ksio_asset_js:
- javascripts/ksio/vendors/share.min
- javascripts/ksio/components/page
- javascripts/ksio/components/toc
post:
extends: page
ksio/doc:
values:
ksio_asset_css:
- stylesheets/ksio/vendors/share
ksio_asset_js:
- javascripts/ksio/vendors/share.min
- javascripts/ksio/components/page
- javascripts/ksio/components/toc
_nop/layouts/doc:
extends: ksio/doc
page:
- scope:
type: posts
values:
ksio_asset_css:
- stylesheets/pages/post
ksio_asset_js:
- javascripts/ksio/vendors/jquery.timeago
- javascripts/ksio/vendors/jquery.timeago.zh-CN
- javascripts/ksio/initializers/time
- javascripts/ksio/vendors/jquery.lazyload
- javascripts/ksio/initializers/lazyload
- scope:
type: knosys
values:
layout: _nop/layouts/doc
ksio_asset_css:
- stylesheets/pages/post
- stylesheets/pages/doc
ksio_asset_js:
- javascripts/ksio/vendors/jquery.timeago
- javascripts/ksio/vendors/jquery.timeago.zh-CN
- javascripts/ksio/initializers/time
- javascripts/ksio/vendors/jquery.lazyload
- javascripts/ksio/initializers/lazyload
repo: nop-entropy

# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
deploy:
type: ''
5 changes: 5 additions & 0 deletions .knosys/sites/default/source/_posts/hello-world.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Hello World
---

这个文件不能删,否则本地服务无法启动。
Loading

0 comments on commit b474648

Please sign in to comment.