mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-02 03:57:38 +08:00
docs: add changelog in document (#1306)
This commit is contained in:
parent
f8ec6256ba
commit
194caa37fb
@ -8,13 +8,8 @@
|
||||
<ProjectReference Include="..\AntDesign.Docs\AntDesign.Docs.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<DocFiles Include="$(SolutionDir)docs\**\*.*"></DocFiles>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Watch Include="$(SolutionDir)**\*.razor" />
|
||||
</ItemGroup>
|
||||
<Target Name="CopyDocs" BeforeTargets="Build">
|
||||
<Copy SourceFiles="@(DocFiles)" DestinationFolder="$(ProjectDir)\wwwroot\docs\%(RecursiveDir)" ContinueOnError="true" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
@ -13,11 +13,10 @@
|
||||
@*<link href="_content/AntDesign/css/ant-design-blazor.css" rel="stylesheet">*@
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2.6.3/dist/cdn/docsearch.min.css" />
|
||||
<link href="_content/AntDesign.Docs/css/docs.css" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<app>
|
||||
<component type="typeof(App)" render-mode="Server" />
|
||||
<component type="typeof(App)" render-mode="ServerPrerendered" />
|
||||
</app>
|
||||
|
||||
<script src="_content/AntDesign.Charts/g2plot.js"></script>
|
||||
@ -38,4 +37,4 @@
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2.6.3/dist/cdn/docsearch.min.js" integrity="sha256-qybEsgf0PGiQS22AmoozPs09oRnSC7Gu7eBu4fbS2Ac=" crossorigin="anonymous"></script>
|
||||
<script src="_content/AntDesign.Docs/js/docsearch.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
@ -25,11 +25,4 @@
|
||||
<Content Include="$(SolutionDir)scripts\gh-pages\**" LinkBase="gh-pages" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<DocFiles Include="$(SolutionDir)docs\**\*.*" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="CopyDocs" BeforeTargets="Build">
|
||||
<Copy SourceFiles="@(DocFiles)" DestinationFolder="$(ProjectDir)\wwwroot\docs\%(RecursiveDir)" ContinueOnError="true" />
|
||||
</Target>
|
||||
</Project>
|
@ -50,11 +50,17 @@
|
||||
<ProjectDir>$(SolutionDir)/site/AntDesign.Docs</ProjectDir>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<DocFiles Include="$(SolutionDir)docs\**\*.*" />
|
||||
<DocFiles Include="$(SolutionDir)\CHANGELOG.*.*" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="RunCli" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug'">
|
||||
<Copy SourceFiles="@(DocFiles)" DestinationFolder="$(ProjectDir)\wwwroot\docs\%(RecursiveDir)" ContinueOnError="true" />
|
||||
<Exec WorkingDirectory="$(SolutionDir)" Command="dotnet build $(CLIProjectDir)" />
|
||||
<Exec WorkingDirectory="$(SolutionDir)" Command="dotnet $(CLIPath) demo2json $(ProjectDir)/Demos $(ProjectDir)/wwwroot/meta" />
|
||||
<Exec WorkingDirectory="$(SolutionDir)" Command="dotnet $(CLIPath) menu2json $(ProjectDir)/Demos docs $(ProjectDir)/wwwroot/meta" />
|
||||
<Exec WorkingDirectory="$(SolutionDir)" Command="dotnet $(CLIPath) docs2html ./docs ./site/AntDesign.Docs/wwwroot/docs" />
|
||||
<Exec WorkingDirectory="$(SolutionDir)" Command="dotnet $(CLIPath) menu2json $(ProjectDir)/Demos $(ProjectDir)/wwwroot/docs $(ProjectDir)/wwwroot/meta" />
|
||||
<Exec WorkingDirectory="$(SolutionDir)" Command="dotnet $(CLIPath) docs2html $(ProjectDir)/wwwroot/docs ./site/AntDesign.Docs/wwwroot/docs" />
|
||||
</Target>
|
||||
|
||||
<Target Name="PublishRunGulp" AfterTargets="ComputeFilesToPublish">
|
||||
|
@ -8,7 +8,8 @@ namespace AntDesign.Tests.Grid
|
||||
[Fact]
|
||||
public void Render_with_defaults()
|
||||
{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>
|
||||
{
|
||||
p.AddChildContent("Contents");
|
||||
});
|
||||
cut.MarkupMatches(@"
|
||||
@ -19,7 +20,8 @@ namespace AntDesign.Tests.Grid
|
||||
[Fact]
|
||||
public void Render_with_all_options()
|
||||
{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>
|
||||
{
|
||||
p.Add(x => x.Flex, 1);
|
||||
p.Add(x => x.Span, 2);
|
||||
p.Add(x => x.Order, 3);
|
||||
@ -29,14 +31,15 @@ namespace AntDesign.Tests.Grid
|
||||
p.AddChildContent("Contents");
|
||||
});
|
||||
cut.MarkupMatches(@"
|
||||
<div class=""ant-col ant-col-2 ant-col-order-3 ant-col-offset-4 ant-col-pull-6 ant-col-push-5"" style="" "" id:ignore>Contents</div>
|
||||
<div class=""ant-col ant-col-2 ant-col-order-3 ant-col-offset-4 ant-col-pull-6 ant-col-push-5"" style=""flex: 1 1 auto"" id:ignore>Contents</div>
|
||||
");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Render_with_column_int_span()
|
||||
{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>
|
||||
{
|
||||
p.Add(x => x.Span, 2);
|
||||
p.AddChildContent("Contents");
|
||||
});
|
||||
@ -48,7 +51,8 @@ namespace AntDesign.Tests.Grid
|
||||
[Fact]
|
||||
public void Render_with_column_string_span()
|
||||
{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>
|
||||
{
|
||||
p.Add(x => x.Span, "3");
|
||||
p.AddChildContent("Contents");
|
||||
});
|
||||
@ -64,7 +68,8 @@ namespace AntDesign.Tests.Grid
|
||||
[Fact]
|
||||
public void Render_with_column_span_and_xs_column_span()
|
||||
{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>
|
||||
{
|
||||
p.Add(x => x.Span, 5);
|
||||
p.Add(x => x.Xs, 6);
|
||||
p.AddChildContent("Contents");
|
||||
@ -81,10 +86,12 @@ namespace AntDesign.Tests.Grid
|
||||
[Fact]
|
||||
public void Render_with_all_xs_options()
|
||||
{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>
|
||||
{
|
||||
p.Add(
|
||||
x => x.Xs,
|
||||
new AntDesign.EmbeddedProperty {
|
||||
new AntDesign.EmbeddedProperty
|
||||
{
|
||||
Span = 2,
|
||||
Order = 3,
|
||||
Offset = 4,
|
||||
@ -101,7 +108,8 @@ namespace AntDesign.Tests.Grid
|
||||
[Fact]
|
||||
public void Render_with_xs_column_int_span()
|
||||
{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>
|
||||
{
|
||||
p.Add(x => x.Xs, 4);
|
||||
p.AddChildContent("Contents");
|
||||
});
|
||||
@ -113,7 +121,8 @@ namespace AntDesign.Tests.Grid
|
||||
[Fact]
|
||||
public void Render_with_xs_column_embedded_span()
|
||||
{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>
|
||||
{
|
||||
p.Add(x => x.Xs, new AntDesign.EmbeddedProperty { Span = 3 });
|
||||
p.AddChildContent("Contents");
|
||||
});
|
||||
@ -129,7 +138,8 @@ namespace AntDesign.Tests.Grid
|
||||
[Fact]
|
||||
public void Render_with_sm_column_int_span()
|
||||
{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>
|
||||
{
|
||||
p.Add(x => x.Sm, 2);
|
||||
p.AddChildContent("Contents");
|
||||
});
|
||||
@ -145,7 +155,8 @@ namespace AntDesign.Tests.Grid
|
||||
[Fact]
|
||||
public void Render_with_md_column_int_span()
|
||||
{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>
|
||||
{
|
||||
p.Add(x => x.Md, 2);
|
||||
p.AddChildContent("Contents");
|
||||
});
|
||||
@ -161,7 +172,8 @@ namespace AntDesign.Tests.Grid
|
||||
[Fact]
|
||||
public void Render_with_lg_column_int_span()
|
||||
{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>
|
||||
{
|
||||
p.Add(x => x.Lg, 2);
|
||||
p.AddChildContent("Contents");
|
||||
});
|
||||
@ -177,7 +189,8 @@ namespace AntDesign.Tests.Grid
|
||||
[Fact]
|
||||
public void Render_with_xl_column_int_span()
|
||||
{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>
|
||||
{
|
||||
p.Add(x => x.Xl, 2);
|
||||
p.AddChildContent("Contents");
|
||||
});
|
||||
@ -193,7 +206,8 @@ namespace AntDesign.Tests.Grid
|
||||
[Fact]
|
||||
public void Render_with_xxl_column_int_span()
|
||||
{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>{
|
||||
var cut = Context.RenderComponent<AntDesign.Col>(p =>
|
||||
{
|
||||
p.Add(x => x.Xxl, 2);
|
||||
p.AddChildContent("Contents");
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user