Skip to content

Commit 1885caf

Browse files
committed
Merge branch 'release/2.0.0-beta.2' into production
2 parents 6d0f82c + 85d7736 commit 1885caf

File tree

4 files changed

+33
-7
lines changed

4 files changed

+33
-7
lines changed

Tools/appveyor-publish-docs-site.ps1

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,32 @@ if ($Env:APPVEYOR_REPO_BRANCH -eq "production") {
3636
if($Env:APPVEYOR -eq "True") {
3737
Write-Host "Setting up git to publish site"
3838
git config --global user.name "AppVeyor (on behalf of Craig Fowler)"
39-
git config --global user.email "[email protected]"
39+
git config --global user.email "[email protected]"
4040
git config --global credential.helper store
4141
Set-Content -Path "$HOME\.git-credentials" -Value "https://$($Env:GITHUB_SECRET_KEY):[email protected]`n" -NoNewline
4242
}
4343

44-
# Because of autocrlf, the git add command could report warnings which cause the script to
44+
# The git commands below could report warnings which cause the script to
4545
# stop unless I change the error preference first
4646
$ErrorActionPreference = "silentlycontinue"
4747

48+
Write-Host "Switching to a temp branch"
49+
git checkout -b temp/publish-docs
50+
4851
Write-Host "Adding content"
4952
git add --all docs/
5053

5154
Write-Host "Creating commit"
5255
git commit -m "Auto-publish docs website [skip ci]"
5356

54-
if($Env:APPVEYOR -eq "True") {
57+
if($Env:APPVEYOR -eq "True" -and $Env:APPVEYOR_REPO_BRANCH -eq "production") {
58+
Write-Host "Pushing to origin"
59+
git checkout master
60+
git pull
61+
git merge temp/publish-docs --no-ff -m "Merge newly-published docs [skip ci]"
62+
git push origin master
63+
}
64+
elseif ($Env:APPVEYOR -eq "True") {
5565
Write-Host "Pushing to origin"
56-
git push origin HEAD:$Env:APPVEYOR_REPO_BRANCH
66+
git push origin temp/publish-docs:master
5767
}

docs/_vnext/articles/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,12 @@ <h2 id="get-started">Get started</h2>
8181
<h2 id="reference-documentation">Reference documentation</h2>
8282
<ul>
8383
<li><a href="ViewEngines.html">ZptSharp MVC view engines</a></li>
84+
<li><a href="NuGetPackages.html">The NuGet packages</a></li>
8485
<li><a href="../api/index.html">Consuming the API</a></li>
8586
<li><a href="ZptReference/Index.html">ZPT syntax</a></li>
8687
<li><a href="CliRenderer.html">The command line renderer</a></li>
8788
<li><a href="Compatibility.html">Compatibility</a></li>
89+
<li><a href="Logging.html">Logging</a></li>
8890
</ul>
8991
<h2 id="contributing--extending">Contributing &amp; extending</h2>
9092
<p>ZptSharp is an extensible library which may be customised to your desired usage.
@@ -95,6 +97,15 @@ <h2 id="contributing--extending">Contributing &amp; extending</h2>
9597
<li><a href="WritingDocumentProviders.html">Writing new document providers</a></li>
9698
<li><a href="WritingExpressionEvaluators.html">Writing new expression evaluators</a></li>
9799
</ul>
100+
<h2 id="documentation-for-previous-versions">Documentation for previous versions</h2>
101+
<p>Documentation is available for previous versions of ZptSharp:</p>
102+
<ul>
103+
<li><a href="https://csf-dev.github.io/ZPT-Sharp/_legacy/v1.x/">ZPT-Sharp <strong>version 1.x</strong></a>
104+
<ul>
105+
<li><em>In these versions, ZptSharp was distributed under a different name and with different NuGet packages.</em></li>
106+
</ul>
107+
</li>
108+
</ul>
98109
</article>
99110
</div>
100111

docs/_vnext/index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,11 @@
6363

6464
<div class="homepage">
6565
<h1 id="intuitive-html--xml-document-templates-for-net">Intuitive HTML &amp; XML document templates for .NET</h1>
66+
<p>ZptSharp is a document template language &amp; renderer for .NET Framework, .NET Core &amp; .NET 5+.
67+
It may be used as a <strong>View Engine</strong> for AS<span>P.N</span>ET MVC5 or AS<span>P.N</span>ET Core MVC.
68+
It also comes with a command-line rendering tool and may be consumed by your own applications as an API.</p>
6669
<section class="sample">
67-
<h2 id="sample-zptsharp-markup">Sample ZptSharp markup</h2>
70+
<h2 id="sample-zpt-markup">Sample ZPT markup</h2>
6871
<pre><code class="lang-html">&lt;ul&gt;
6972
&lt;li tal:repeat=&quot;todo here/Todos&quot;&gt;
7073
Remember to
@@ -75,6 +78,8 @@ <h2 id="sample-zptsharp-markup">Sample ZptSharp markup</h2>
7578
</section>
7679
<section class="get_started">
7780
<h2 id="get-started">Get started</h2>
81+
<p>Here are some recommended first steps to get learning about ZptSharp and the ZPT syntax.
82+
You may also visit <a href="articles/index.html">the documentation home page</a> for more links &amp; info.</p>
7883
<ul>
7984
<li><a href="articles/WhatIsZptSharp.html">What is ZptSharp?</a></li>
8085
<li>Quick start

docs/_vnext/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4869,7 +4869,7 @@
48694869
"output": {
48704870
".html": {
48714871
"relative_path": "articles/index.html",
4872-
"hash": "M98+n0HQ34q9ONZv224kNw=="
4872+
"hash": "ARZM8VFgJuPZTAVSA7INVQ=="
48734873
}
48744874
},
48754875
"is_incremental": false,
@@ -4904,7 +4904,7 @@
49044904
"output": {
49054905
".html": {
49064906
"relative_path": "index.html",
4907-
"hash": "S/nKzhA4Yhi3oYG4Xt9c6A=="
4907+
"hash": "nMDCniL0kmAKoLURpe39nA=="
49084908
}
49094909
},
49104910
"is_incremental": false,

0 commit comments

Comments
 (0)