Skip to content

Commit

Permalink
switch to docfx
Browse files Browse the repository at this point in the history
  • Loading branch information
pwelter34 committed Aug 29, 2023
1 parent 0f2a2fb commit 4853a60
Show file tree
Hide file tree
Showing 16 changed files with 115 additions and 12 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,19 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Checkout
uses: actions/checkout@v3

- name: Dotnet Setup
uses: actions/setup-dotnet@v3
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
dotnet-version: 7.x

- run: dotnet tool update -g docfx
- run: docfx docs/docfx.json

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_site
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -244,3 +244,4 @@ coverage.xml
coverage.opencover.xml
*.received.txt
.idea
_site
64 changes: 64 additions & 0 deletions docs/docfx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"metadata": [
{
"src": [
{
"files": [
"src/FluentCommand/bin/Release/net7.0/FluentCommand.dll",
"src/FluentCommand.SqlServer/bin/Release/net7.0/FluentCommand.SqlServer.dll",
"src/FluentCommand.Json/bin/Release/net7.0/FluentCommand.Json.dll"
],
"src": "../"
}
],
"dest": "reference"
}
],
"build": {
"content": [
{
"files": [
"reference/**.yml",
"reference/index.md"
]
},
{
"files": [
"guide/**.md",
"guide/**/toc.yml",
"toc.yml",
"*.md"
]
}
],
"resource": [
{
"files": [
"assets/**"
]
}
],
"postProcessors": [
"ExtractSearchIndex"
],
"globalMetadata": {
"_appTitle": "FluentCommand",
"_appName": "FluentCommand",
"_appFooter": "Copyright © 2023 LoreSoft",
"_appLogoPath": "assets/logo.png",
"_appFaviconPath": "assets/logo.png",
"_enableSearch": true
},
"sitemap": {
"baseUrl": "https://loresoft.com/FluentCommand",
"priority": 0.5,
"changefreq": "daily"
},
"output": "_site",
"template": [
"default",
"modern",
"template"
]
}
}
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/configuration.md → docs/guide/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Configuration for SQL Server

```c#
```cs
IDataConfiguration dataConfiguration = new DataConfiguration(
SqlClientFactory.Instance,
ConnectionString
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions docs/guide/toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
- name: Configuration
href: configuration.md
- name: SQL Builder
href: sql.md
- name: Parameters
href: parameter.md
- name: Execute
href: execute.md
- name: Queries
href: query.md
- name: Caching
href: cache.md
- name: Logging
href: logging.md
- name: Generation
href: generation.md
2 changes: 2 additions & 0 deletions docs/reference/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.yml
.manifest
3 changes: 3 additions & 0 deletions docs/reference/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# FluentCommand Reference

The API Reference Documentation
9 changes: 9 additions & 0 deletions docs/template/public/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#logo {
width: 50px;
height: 50px;
margin-right: 0.5em;
}

#breadcrumb {
display: none;
}
5 changes: 5 additions & 0 deletions docs/toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- name: User Guide
href: guide/
- name: Reference
href: reference/
homepage: reference/index.md

0 comments on commit 4853a60

Please sign in to comment.