Skip to content

Commit

Permalink
Merge pull request #40 from naminodarie/feature/doc
Browse files Browse the repository at this point in the history
Update README
  • Loading branch information
kzrnm authored Mar 21, 2021
2 parents 95a2940 + 6d2ffc1 commit 8153db8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
16 changes: 10 additions & 6 deletions README.ja.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ac-library-csharp

README languages: [Japanese](README.ja.md)
README languages: [English](README.md), [日本語](README.ja.md)

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
Expand Down Expand Up @@ -91,14 +91,18 @@ Install-Package AtCoderAnalyzer

### output combinded source code

提出用にソースコードを結合したファイルを出力する方式です。

SourceExpander はソースジェネレーターを使用するライブラリなので **.NET 5 SDK****Visual Studio 16.8** (またはそれ以上のバージョン)が必要です。
ac-library-csharp は https://github.com/naminodarie/SourceExpander に対応しています。

```
Install-Package SourceExpander
```

-----

SourceExpander は提出用にソースコードを結合したファイルを出力するライブラリです。

SourceExpander はソースジェネレーターを使用するライブラリなので **.NET 5 SDK****Visual Studio 16.8** (またはそれ以上のバージョン)が必要です。

`/home/any_directory/ac-library-csharp/Sample/SampleProject/Program.cs`を実行すると, `SourceExpander.Expander.Expand()``/home/any_directory/ac-library-csharp/Sample/SampleProject/Combined.csx` が出力されます。

------
Expand All @@ -113,7 +117,7 @@ class Program
{
static void Main()
{
SourceExpander.Expander.Expand();
SourceExpander.Expander.Expand(); // output combined file
// https://atcoder.jp/contests/practice2/tasks/practice2_a
var line = Console.ReadLine().Split(' ');
Expand Down Expand Up @@ -157,7 +161,7 @@ class Program
{
static void Main()
{
SourceExpander.Expander.Expand();
SourceExpander.Expander.Expand(); // output combined file
// https://atcoder.jp/contests/practice2/tasks/practice2_j
var line = Console.ReadLine().Split(' ');
Expand Down
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ac-library-csharp

README languages: [Japanese](README.ja.md)
README languages: [English](README.md), [日本語](README.ja.md)

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
Expand Down Expand Up @@ -90,14 +90,18 @@ Installing [AtCoderAnalyzer](/document_en/analyzers/index.md) provide some code

### output combinded source code

Output combinded source code for submitting.

Require **.NET 5 SDK** or **Visual Studio 16.8** or later because SourceExpander use Source Generators.
ac-library-csharp supports https://github.com/naminodarie/SourceExpander

```
Install-Package SourceExpander
```

-----

SourceExpander outputs combinded source code for submitting.

Require **.NET 5 SDK** or **Visual Studio 16.8** or later because SourceExpander use Source Generators.

When you run `/home/any_directory/ac-library-csharp/Sample/SampleProject/Program.cs`, `SourceExpander.Expander.Expand()` creates `/home/any_directory/ac-library-csharp/Sample/SampleProject/Combined.csx`

------
Expand All @@ -112,7 +116,7 @@ class Program
{
static void Main()
{
SourceExpander.Expander.Expand();
SourceExpander.Expander.Expand(); // output combined file
// https://atcoder.jp/contests/practice2/tasks/practice2_a
var line = Console.ReadLine().Split(' ');
Expand Down Expand Up @@ -156,7 +160,7 @@ class Program
{
static void Main()
{
SourceExpander.Expander.Expand();
SourceExpander.Expander.Expand(); // output combined file
// https://atcoder.jp/contests/practice2/tasks/practice2_j
var line = Console.ReadLine().Split(' ');
Expand Down

0 comments on commit 8153db8

Please sign in to comment.