Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CAP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
CAP
Commits
e5d2c0be
Commit
e5d2c0be
authored
Aug 13, 2017
by
kiler398
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加文档编译msbuild脚本
parent
95f55d38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
91 additions
and
0 deletions
+91
-0
docPublish.xml
docPublish.xml
+91
-0
No files found.
docPublish.xml
0 → 100644
View file @
e5d2c0be
<?xml version="1.0" encoding="utf-8"?>
<Project
DefaultTargets=
"build"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<PropertyGroup>
<WorkDir>
C:\projects\CAP\
</WorkDir>
<webDir>
C:\website\CAP\
</webDir>
<webName>
dotnetcore.github.io
</webName>
<domainName>
docs.dotnet-china.org
</domainName>
<baiduCode>
Bh1NXh3smd
</baiduCode>
<webrepUrl>
https://github.com/dotnetcore/dotnetcore.github.io
</webrepUrl>
<docfxPath>
"$(WorkDir)docfx.json"
</docfxPath>
<templatePath>
"$(WorkDir)_exported_templates\default"
</templatePath>
<sitePath>
"$(WorkDir)\_site"
</sitePath>
<sourcePath>
$(WorkDir)
</sourcePath>
<pubsitePath>
"$(webDir)$(webName)"
</pubsitePath>
<pdfresourcePath>
"$(WorkDir)\pdfresource"
</pdfresourcePath>
<SubDirName>
cap
</SubDirName>
<ProjectDir>
$(webDir)$(webName)\$(SubDirName)\
</ProjectDir>
</PropertyGroup>
<Target
Name=
"build"
>
<CallTarget
Targets=
"buildwebsite"
/>
<!-- <CallTarget Targets="buildPdf"/> -->
<CallTarget
Targets=
"pubish2githubIo"
/>
</Target>
<Target
Name=
"buildwebsite"
>
<Message
Text=
"Start to build website"
></Message>
<Exec
Command=
"docfx build $(docfxPath) -t $(templatePath) "
WorkingDirectory=
"$(WorkDir)"
></Exec>
<Message
Text=
"Build website successfully."
></Message>
<Message
Text=
"Start to fix website files"
></Message>
<Exec
Command=
"FixSite.exe $(sitePath) "
></Exec>
<Message
Text=
"Fix website files"
></Message>
</Target>
<Target
Name=
"pubish2githubIo"
>
<Exec
Command=
"git clone --progress $(webrepUrl) "
WorkingDirectory=
"$(webDir)"
/>
<!-- <Exec Command="git rm * -r" WorkingDirectory="$(webDir)$(webName)" ></Exec> -->
<RemoveDir
Directories=
"$(ProjectDir)"
/>
<MakeDir
Directories=
"$(ProjectDir)"
/>
<Delete
Files=
"$(ProjectDir)"
/>
<Exec
Command=
"xcopy.exe $(sitePath) $(ProjectDir) /e"
/>
<!-- <Exec Command="echo $(domainName) > CNAME" WorkingDirectory="$(webDir)$(webName)" ></Exec>
<Exec Command="echo $(baiduCode) > baidu_verify_Bh1NXh3smd.html" WorkingDirectory="$(webDir)$(webName)" ></Exec> -->
<Exec
Command=
"git add -A"
WorkingDirectory=
"$(webDir)$(webName)"
></Exec>
<Exec
Command=
"git commit -m "submit new website""
WorkingDirectory=
"$(webDir)$(webName)"
></Exec>
<Exec
Command=
"git push --progress -u origin master "
WorkingDirectory=
"$(webDir)$(webName)"
></Exec>
</Target>
<!-- <Target Name="buildPdf">
<Exec Command="xcopy.exe $(pdfresourcePath) $(sourcePath) /e /s" />
<Exec Command="docfx.exe pdf docfxpdf.json" WorkingDirectory="$(sourcePath)" />
<Exec Command="move $(sourcePath)\_site-pdf\aspnetcore.pdf $(sourcePath)\_site\aspnet_core_doc_cn.pdf"/>
</Target> -->
</Project>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment