From 7056e4b63416d471b51178200a82349d86d9ecb3 Mon Sep 17 00:00:00 2001 From: tokusumi Date: Wed, 5 May 2021 20:34:39 +0900 Subject: [PATCH 1/2] refresh code block --- README.md | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/README.md b/README.md index e524656..ff5ff68 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,6 @@ This action could inspect your code, if you add a file path in code block as "\` The following code block has a file path `src/helloworld.py`: ```python:src/helloworld.py -def hello(): - return "v1.0.0 world" - ``` See [src/helloworld.py](./src/helloworld.py) as: @@ -46,8 +43,6 @@ You might add specific lines from one file (ex. [src/mul.py](./src/mul.py)). This action supports this with the syntax as "\`\`\`lang:external/file/path.py [start:end]\`\`\`" for it: ```py:src/mul.py [3-4] -def multiple(x): - return pow(x, 2) ``` ### Multiple use @@ -55,19 +50,11 @@ def multiple(x): You might add one file path (ex. [src/mul.py](./src/mul.py)) for multiple code blocks: ```py:src/mul.py -from math import pow - -def multiple(x): - return pow(x, 2) ``` It works!: ```py:src/mul.py -from math import pow - -def multiple(x): - return pow(x, 2) ``` However, the other is not available. @@ -85,9 +72,6 @@ Ideally you could write as "\`\`\`lang:external/file/path.py\`\`\`", but actuall So, missing "lang" is available: ```:src/helloworld.sh -#!/bin/bash - -echo "hello" ``` ## Formatting From 898a0ce6dee68ab6296a925b80b4509c3b83f5f8 Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 5 May 2021 11:35:58 +0000 Subject: [PATCH 2/2] auto commit for embedding --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index ff5ff68..e524656 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,9 @@ This action could inspect your code, if you add a file path in code block as "\` The following code block has a file path `src/helloworld.py`: ```python:src/helloworld.py +def hello(): + return "v1.0.0 world" + ``` See [src/helloworld.py](./src/helloworld.py) as: @@ -43,6 +46,8 @@ You might add specific lines from one file (ex. [src/mul.py](./src/mul.py)). This action supports this with the syntax as "\`\`\`lang:external/file/path.py [start:end]\`\`\`" for it: ```py:src/mul.py [3-4] +def multiple(x): + return pow(x, 2) ``` ### Multiple use @@ -50,11 +55,19 @@ This action supports this with the syntax as "\`\`\`lang:external/file/path.py [ You might add one file path (ex. [src/mul.py](./src/mul.py)) for multiple code blocks: ```py:src/mul.py +from math import pow + +def multiple(x): + return pow(x, 2) ``` It works!: ```py:src/mul.py +from math import pow + +def multiple(x): + return pow(x, 2) ``` However, the other is not available. @@ -72,6 +85,9 @@ Ideally you could write as "\`\`\`lang:external/file/path.py\`\`\`", but actuall So, missing "lang" is available: ```:src/helloworld.sh +#!/bin/bash + +echo "hello" ``` ## Formatting