This commit is contained in:
James Jackson-South 2020-02-22 23:01:16 +11:00
Родитель d16fd55f78
Коммит e7f023237b
26 изменённых файлов: 353 добавлений и 0 удалений

125
.gitattributes поставляемый Normal file
Просмотреть файл

@ -0,0 +1,125 @@
###############################################################################
# Set default behavior to:
# treat as text and
# normalize to Unix-style line endings
###############################################################################
* text eol=lf
###############################################################################
# Set explicit file behavior to:
# treat as text and
# normalize to Unix-style line endings
###############################################################################
*.asm text eol=lf
*.c text eol=lf
*.clj text eol=lf
*.cmd text eol=lf
*.cpp text eol=lf
*.css text eol=lf
*.cxx text eol=lf
*.config text eol=lf
*.DotSettings text eol=lf
*.erl text eol=lf
*.fs text eol=lf
*.fsx text eol=lf
*.h text eol=lf
*.htm text eol=lf
*.html text eol=lf
*.hs text eol=lf
*.hxx text eol=lf
*.java text eol=lf
*.js text eol=lf
*.json text eol=lf
*.less text eol=lf
*.lisp text eol=lf
*.lua text eol=lf
*.m text eol=lf
*.md text eol=lf
*.php text eol=lf
*.props text eol=lf
*.ps1 text eol=lf
*.py text eol=lf
*.rb text eol=lf
*.resx text eol=lf
*.runsettings text eol=lf
*.ruleset text eol=lf
*.sass text eol=lf
*.scss text eol=lf
*.sh text eol=lf
*.sql text eol=lf
*.svg text eol=lf
*.targets text eol=lf
*.tt text eol=crlf
*.ttinclude text eol=crlf
*.txt text eol=lf
*.vb text eol=lf
*.yml text eol=lf
###############################################################################
# Set explicit file behavior to:
# treat as text
# normalize to Unix-style line endings and
# diff as csharp
###############################################################################
*.cs text eol=lf diff=csharp
###############################################################################
# Set explicit file behavior to:
# treat as text
# normalize to Unix-style line endings and
# use a union merge when resoling conflicts
###############################################################################
*.csproj text eol=lf merge=union
*.dbproj text eol=lf merge=union
*.fsproj text eol=lf merge=union
*.ncrunchproject text eol=lf merge=union
*.vbproj text eol=lf merge=union
###############################################################################
# Set explicit file behavior to:
# treat as text
# normalize to Windows-style line endings and
# use a union merge when resoling conflicts
###############################################################################
*.sln text eol=crlf merge=union
###############################################################################
# Set explicit file behavior to:
# treat as binary
###############################################################################
*.basis binary
*.bmp binary
*.dds binary
*.dll binary
*.eot binary
*.exe binary
*.gif binary
*.jpg binary
*.ktx binary
*.pbm binary
*.pdf binary
*.png binary
*.ppt binary
*.pptx binary
*.pvr binary
*.ttf binary
*.snk binary
*.tga binary
*.ttf binary
*.woff binary
*.woff2 binary
*.xls binary
*.xlsx binary
###############################################################################
# Set explicit file behavior to:
# diff as plain text
###############################################################################
*.doc diff=astextplain
*.docx diff=astextplain
*.dot diff=astextplain
*.pdf diff=astextplain
*.pptx diff=astextplain
*.rtf diff=astextplain
*.svg diff=astextplain

9
.gitignore поставляемый Normal file
Просмотреть файл

@ -0,0 +1,9 @@
###############
# folder #
###############
/**/DROP/
/**/TEMP/
/**/packages/
/**/bin/
/**/obj/
_site

12
.gitmodules поставляемый Normal file
Просмотреть файл

@ -0,0 +1,12 @@
[submodule "src/ImageSharp.Drawing"]
path = src/ImageSharp.Drawing
url = https://github.com/SixLabors/ImageSharp.Drawing
[submodule "src/ImageSharp.Web"]
path = src/ImageSharp.Web
url = https://github.com/SixLabors/ImageSharp.Web
[submodule "src/ImageSharp"]
path = src/ImageSharp
url = https://github.com/SixLabors/ImageSharp
[submodule "src/Fonts"]
path = src/Fonts
url = https://github.com/SixLabors/Fonts

5
api/.gitignore поставляемый Normal file
Просмотреть файл

@ -0,0 +1,5 @@
###############
# temp file #
###############
*.yml
.manifest

3
api/index.md Normal file
Просмотреть файл

@ -0,0 +1,3 @@
# API Documentation
The API documentation is automatically generated from source-code-level comments. Often, more information can be found by looking into the [source code](https://github.com/sixlabors) itself.

17
build-dev.cmd Normal file
Просмотреть файл

@ -0,0 +1,17 @@
@echo Off
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '.\build-dev.ps1'"
if not "%errorlevel%"=="0" goto failure
:success
ECHO successfully built project
REM exit 0
goto end
:failure
ECHO failed to build.
REM exit -1
goto end
:end

5
build-dev.ps1 Normal file
Просмотреть файл

@ -0,0 +1,5 @@
# Ensure all submodules are checked out with the latest master. (Useful for docs development.)
git submodule update --init --recursive
git submodule foreach git pull origin master --recurse-submodules
docfx

17
build.cmd Normal file
Просмотреть файл

@ -0,0 +1,17 @@
@echo Off
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '.\build.ps1'"
if not "%errorlevel%"=="0" goto failure
:success
ECHO successfully built project
REM exit 0
goto end
:failure
ECHO failed to build.
REM exit -1
goto end
:end

14
build.ps1 Normal file
Просмотреть файл

@ -0,0 +1,14 @@
# ensure all submodules are currently checked out to the latest tag
git submodule update --init --recursive
Get-ChildItem ./ext -Directory | ForEach-Object {
$path = $_.FullName
git -C "$path" fetch --tags
$lastTag = (git -C "$path" describe --tags $(git -C "$path" rev-list --tags --max-count=1)) | Out-String
$lastTag = $lastTag.Trim()
Write-Host "$path => $lastTag"
git -C "$path" reset --hard "$lastTag" --
}
docfx

115
docfx.json Normal file
Просмотреть файл

@ -0,0 +1,115 @@
{
"metadata": [
{
"src": [
{
"files": [
"src/ImageSharp/src/**.csproj"
]
}
],
"dest": "api/ImageSharp",
"disableGitFeatures": false,
"disableDefaultFilter": false,
"properties": {
"TargetFramework": "netcoreapp3.1"
}
},
{
"src": [
{
"files": [
"src/ImageSharp.Drawing/src/**.csproj"
]
}
],
"dest": "api/ImageSharp.Drawing",
"disableGitFeatures": false,
"disableDefaultFilter": false,
"properties": {
"TargetFramework": "netcoreapp3.1"
}
},
{
"src": [
{
"files": [
"src/Fonts/src/**.csproj"
]
}
],
"dest": "api/Fonts",
"disableGitFeatures": false,
"disableDefaultFilter": false,
"properties": {
"TargetFramework": "netcoreapp3.1"
}
},
{
"src": [
{
"files": [
"src/ImageSharp.Web/src/ImageSharp.Web/**.csproj"
]
}
],
"dest": "api/ImageSharp.Web",
"disableGitFeatures": false,
"disableDefaultFilter": false,
"properties": {
"TargetFramework": "netcoreapp3.1"
}
}
],
"build": {
"content": [
{
"files": [
"api/**.yml",
"api/index.md"
]
},
{
"files": [
"tutorials/**.md",
"tutorials/**/toc.yml",
"toc.yml",
"*.md"
]
}
],
"resource": [
{
"files": [
"images/**",
"favicon.ico",
"logo.svg",
"main.css"
]
}
],
"overwrite": [
{
"files": [
"apidoc/**.md"
],
"exclude": [
"obj/**",
"_site/**"
]
}
],
"dest": "_site",
"globalMetadataFiles": [],
"fileMetadataFiles": [],
"template": [
"default"
],
"postProcessors": [],
"markdownEngineName": "markdig",
"noLangKeyword": false,
"keepFileLink": false,
"cleanupCacheHistory": false,
"disableGitFeatures": false
}
}

Двоичные данные
favicon.ico Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 15 KiB

Двоичные данные
favicon.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 963 B

4
index.md Normal file
Просмотреть файл

@ -0,0 +1,4 @@
# This is the **HOMEPAGE**.
Refer to [Markdown](http://daringfireball.net/projects/markdown/) for how to write markdown files.
## Quick Start Notes:
1. Add images to the *images* folder if the file is referencing an image.

4
logo.svg Normal file
Просмотреть файл

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2337.742 444.386" width="160px" height="50px" style="margin-right:1rem">
<path id="maze" fill="#e30183" d="M384.936 444.323c42.69-73.88 85.298-147.815 127.99-221.696-20.112-35.434-40.76-70.507-60.924-105.86-84.956-.88-169.88.707-254.82-.833-22.37 34.472-41.43 71.064-62.434 106.44 21.707 36.65 42.24 73.966 61.215 105.34 40.326.413 82.58.81 122.91-.32 16.656-31.97 35.002-63.16 52.982-94.21-22.06-.11-44.22-.36-66.256-.28-6.78 11.876-13.42 23.8-20.1 35.746-18.09.423-37.44.805-56.11.933-9.07-15.526-17.89-31.24-27.18-46.637 8.78-16.668 17.93-33.107 28.24-48.86 62.81 1.716 125.65-.31 188.48 1.098 8.6 15.84 17.82 31.292 26.9 46.848-23.02 39.358-78.08 132.963-95.35 162.314-63.14.8-132.56 1.373-187.9 1.86-31.74-54.554-63-109.386-94.79-163.916 30.943-54.605 63.31-108.386 93.667-163.303 85.536-1.39 171.18.11 256.725-.842C406.9 38.653 395.58 18.963 384.63 0c-92.697.115-176.142.148-256.77.005C86.1 72.885 42.155 148.278 0 220.683c44.365 76.958 91.02 157.765 128.74 223.703 85.394-.517 170.788-.086 256.196-.063z"></path>
<path id="text" fill="#FFF" d="M597.14 338.002v-19.507q26.573 16.917 53.834 16.917 28.987 0 43.998-11.91 15.01-12.085 15.01-33.663 0-18.99-10.178-30.21-10.008-11.39-43.654-30.9-37.614-21.93-47.62-36.6-10.008-14.85-10.008-34.18 0-26.24 20.36-44.54t54.35-18.3q22.085 0 44.17 7.42v17.96q-21.74-9.84-46.413-9.84-25.19 0-40.03 12.78-14.67 12.77-14.67 32.45 0 18.99 10.01 30.21 10.18 11.22 43.65 30.55 34.68 19.68 46.07 35.04 11.56 15.19 11.56 35.04 0 28.48-19.84 46.433-19.67 17.954-55.73 17.954-12.77 0-29.51-3.97-16.57-3.97-25.37-9.15zm183.758 8.803V99.262h17.082v247.543zm214.815 0l-56.94-94.425q-5.348-8.804-9.144-17.262h-.87q-4.66 9.494-9.84 17.262l-57.98 94.425h-20.53l78.16-124.807-73.5-122.736h20.53l55.4 93.045q4.312 7.25 8.97 16.572h.69l9.145-16.58 55.04-93.05h19.843l-74.19 122.4 75.92 125.16zm161.326 0V99.262h17.08V331.27h99.21v15.535zm339.21 0l-28.3-76.99h-107.32l-28.3 76.99h-18.81l93.34-247.543h16.22l92.3 247.545zm-75.92-207.148q-1.9-5.178-3.11-10.185-1.21-4.315-2.59-8.63h-.69q-2.94 11.392-5.7 18.47l-41.586 114.794h95.415zm137 207.148V99.262h65.05q29.16 0 46.41 15.71t17.25 41.602q0 21.578-11.56 37.46-11.39 15.708-31.92 22.268v.69q25.71 2.417 40.54 18.47 14.84 15.882 14.84 40.567 0 31.24-20.19 51.09-20.188 19.68-54.006 19.68zm17.08-231.833v95.806h34.51q26.92 0 43.13-13.81 16.22-13.81 16.22-37.46 0-44.536-52.63-44.536zm0 111.342V331.27h45.89q29.16 0 44.51-13.984 15.53-13.982 15.53-39.703 0-51.26-69.538-51.26zm277.28 124.806q-52.45 0-83.68-34.87-31.06-34.87-31.06-90.626 0-59.21 31.92-94.77 32.09-35.734 87.48-35.734 50.03 0 80.92 34.352 31.06 34.18 31.06 89.764 0 61.454-31.75 96.67-31.75 35.214-84.89 35.214zm1.72-240.463q-43.14 0-71.09 31.244-27.78 31.24-27.78 81.82 0 51.09 26.4 81.48 26.4 30.21 70.393 30.21 45.9 0 72.65-29.87 26.746-30.04 26.746-83.55 0-52.48-26.227-81.82-26.055-29.52-71.088-29.52zm292.29 236.148l-32.96-72.502q-10.18-22.44-20.36-30.03-10.18-7.77-25.538-7.77h-30.71v110.31h-17.08V99.263h68.67q32.783 0 51.42 17.78 18.81 17.608 18.81 46.61 0 26.755-15.35 44.71-15.35 17.95-42.96 23.13v.69q14.663 5.87 28.64 35.733l36.75 78.89zm-109.56-231.833v105.99h42.61q28.3 0 44.87-14.845 16.74-14.845 16.74-40.74 0-23.648-15.01-36.94-15.01-13.465-42.964-13.465zm171.16 223.03v-19.507q26.57 16.917 53.83 16.917 28.984 0 44-11.91 15.01-12.085 15.01-33.663 0-18.99-10.18-30.21-10.01-11.4-43.656-30.9-37.616-21.93-47.62-36.6-10.01-14.85-10.01-34.18 0-26.24 20.36-44.54t54.35-18.3q22.085 0 44.17 7.42v17.95q-21.74-9.84-46.413-9.84-25.19 0-40.03 12.77-14.67 12.77-14.67 32.45 0 18.99 10.01 30.21 10.18 11.22 43.65 30.55 34.68 19.68 46.07 35.04 11.56 15.19 11.56 35.04 0 28.48-19.84 46.43-19.67 17.95-55.73 17.95-12.77 0-29.51-3.97-16.57-3.97-25.37-9.15z" style="line-height:1.25;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start" font-weight="300" font-size="304.027" letter-spacing="0" word-spacing="0" font-family="Segoe UI, BlinkMacSystemFont, -apple-system, Roboto, Helvetica, Arial, sans-serif"></path>
</svg>

После

Ширина:  |  Высота:  |  Размер: 4.0 KiB

3
main.css Normal file
Просмотреть файл

@ -0,0 +1,3 @@
html,body{
background-color: blue!important;
}

3
serve.cmd Normal file
Просмотреть файл

@ -0,0 +1,3 @@
@echo Off
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '.\serve.ps1'"

1
serve.ps1 Normal file
Просмотреть файл

@ -0,0 +1 @@
docfx --serve

1
src/Fonts Submodule

@ -0,0 +1 @@
Subproject commit de77b7fb6476e6f69fd297aa650379758c740cf6

1
src/ImageSharp Submodule

@ -0,0 +1 @@
Subproject commit db5ea653668fb6d90a4e1188ff6e29488df425c9

@ -0,0 +1 @@
Subproject commit e2327992848f5b7ea19ed35fac735b82d4793b73

1
src/ImageSharp.Web Submodule

@ -0,0 +1 @@
Subproject commit 6441493984b58544a05d51ba1c1fe44c69ca91a3

Двоичные данные
templates/favicon.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 963 B

4
templates/logo.svg Normal file
Просмотреть файл

@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2337.742 444.386">
<path id="maze" fill="#e30183" d="M384.936 444.323c42.69-73.88 85.298-147.815 127.99-221.696-20.112-35.434-40.76-70.507-60.924-105.86-84.956-.88-169.88.707-254.82-.833-22.37 34.472-41.43 71.064-62.434 106.44 21.707 36.65 42.24 73.966 61.215 105.34 40.326.413 82.58.81 122.91-.32 16.656-31.97 35.002-63.16 52.982-94.21-22.06-.11-44.22-.36-66.256-.28-6.78 11.876-13.42 23.8-20.1 35.746-18.09.423-37.44.805-56.11.933-9.07-15.526-17.89-31.24-27.18-46.637 8.78-16.668 17.93-33.107 28.24-48.86 62.81 1.716 125.65-.31 188.48 1.098 8.6 15.84 17.82 31.292 26.9 46.848-23.02 39.358-78.08 132.963-95.35 162.314-63.14.8-132.56 1.373-187.9 1.86-31.74-54.554-63-109.386-94.79-163.916 30.943-54.605 63.31-108.386 93.667-163.303 85.536-1.39 171.18.11 256.725-.842C406.9 38.653 395.58 18.963 384.63 0c-92.697.115-176.142.148-256.77.005C86.1 72.885 42.155 148.278 0 220.683c44.365 76.958 91.02 157.765 128.74 223.703 85.394-.517 170.788-.086 256.196-.063z"/>
<path id="text" fill="#FFF" d="M597.14 338.002v-19.507q26.573 16.917 53.834 16.917 28.987 0 43.998-11.91 15.01-12.085 15.01-33.663 0-18.99-10.178-30.21-10.008-11.39-43.654-30.9-37.614-21.93-47.62-36.6-10.008-14.85-10.008-34.18 0-26.24 20.36-44.54t54.35-18.3q22.085 0 44.17 7.42v17.96q-21.74-9.84-46.413-9.84-25.19 0-40.03 12.78-14.67 12.77-14.67 32.45 0 18.99 10.01 30.21 10.18 11.22 43.65 30.55 34.68 19.68 46.07 35.04 11.56 15.19 11.56 35.04 0 28.48-19.84 46.433-19.67 17.954-55.73 17.954-12.77 0-29.51-3.97-16.57-3.97-25.37-9.15zm183.758 8.803V99.262h17.082v247.543zm214.815 0l-56.94-94.425q-5.348-8.804-9.144-17.262h-.87q-4.66 9.494-9.84 17.262l-57.98 94.425h-20.53l78.16-124.807-73.5-122.736h20.53l55.4 93.045q4.312 7.25 8.97 16.572h.69l9.145-16.58 55.04-93.05h19.843l-74.19 122.4 75.92 125.16zm161.326 0V99.262h17.08V331.27h99.21v15.535zm339.21 0l-28.3-76.99h-107.32l-28.3 76.99h-18.81l93.34-247.543h16.22l92.3 247.545zm-75.92-207.148q-1.9-5.178-3.11-10.185-1.21-4.315-2.59-8.63h-.69q-2.94 11.392-5.7 18.47l-41.586 114.794h95.415zm137 207.148V99.262h65.05q29.16 0 46.41 15.71t17.25 41.602q0 21.578-11.56 37.46-11.39 15.708-31.92 22.268v.69q25.71 2.417 40.54 18.47 14.84 15.882 14.84 40.567 0 31.24-20.19 51.09-20.188 19.68-54.006 19.68zm17.08-231.833v95.806h34.51q26.92 0 43.13-13.81 16.22-13.81 16.22-37.46 0-44.536-52.63-44.536zm0 111.342V331.27h45.89q29.16 0 44.51-13.984 15.53-13.982 15.53-39.703 0-51.26-69.538-51.26zm277.28 124.806q-52.45 0-83.68-34.87-31.06-34.87-31.06-90.626 0-59.21 31.92-94.77 32.09-35.734 87.48-35.734 50.03 0 80.92 34.352 31.06 34.18 31.06 89.764 0 61.454-31.75 96.67-31.75 35.214-84.89 35.214zm1.72-240.463q-43.14 0-71.09 31.244-27.78 31.24-27.78 81.82 0 51.09 26.4 81.48 26.4 30.21 70.393 30.21 45.9 0 72.65-29.87 26.746-30.04 26.746-83.55 0-52.48-26.227-81.82-26.055-29.52-71.088-29.52zm292.29 236.148l-32.96-72.502q-10.18-22.44-20.36-30.03-10.18-7.77-25.538-7.77h-30.71v110.31h-17.08V99.263h68.67q32.783 0 51.42 17.78 18.81 17.608 18.81 46.61 0 26.755-15.35 44.71-15.35 17.95-42.96 23.13v.69q14.663 5.87 28.64 35.733l36.75 78.89zm-109.56-231.833v105.99h42.61q28.3 0 44.87-14.845 16.74-14.845 16.74-40.74 0-23.648-15.01-36.94-15.01-13.465-42.964-13.465zm171.16 223.03v-19.507q26.57 16.917 53.83 16.917 28.984 0 44-11.91 15.01-12.085 15.01-33.663 0-18.99-10.18-30.21-10.01-11.4-43.656-30.9-37.616-21.93-47.62-36.6-10.01-14.85-10.01-34.18 0-26.24 20.36-44.54t54.35-18.3q22.085 0 44.17 7.42v17.95q-21.74-9.84-46.413-9.84-25.19 0-40.03 12.77-14.67 12.77-14.67 32.45 0 18.99 10.01 30.21 10.18 11.22 43.65 30.55 34.68 19.68 46.07 35.04 11.56 15.19 11.56 35.04 0 28.48-19.84 46.43-19.67 17.95-55.73 17.95-12.77 0-29.51-3.97-16.57-3.97-25.37-9.15z" style="line-height:1.25;-inkscape-font-specification:'Segoe UI, Light';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start" font-weight="300" font-size="304.027" letter-spacing="0" word-spacing="0" font-family="Segoe UI"/>
</svg>

После

Ширина:  |  Высота:  |  Размер: 3.9 KiB

5
toc.yml Normal file
Просмотреть файл

@ -0,0 +1,5 @@
- name: Tutorials
href: tutorials/
- name: Api Documentation
href: api/
homepage: api/index.md

1
tutorials/intro.md Normal file
Просмотреть файл

@ -0,0 +1 @@
# Add your introductions here!

2
tutorials/toc.yml Normal file
Просмотреть файл

@ -0,0 +1,2 @@
- name: Introduction
href: intro.md