mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 15:31:52 +00:00
docs: add codeimpoter startLine endLine docs
This commit is contained in:
@@ -197,6 +197,8 @@ This shortcode is for importing code from external sources easily without copyin
|
|||||||
| --------- | ------------------------------------------------------- |
|
| --------- | ------------------------------------------------------- |
|
||||||
| `url` | **Required** URL to an externally hosted code file. |
|
| `url` | **Required** URL to an externally hosted code file. |
|
||||||
| `type` | Code type used for syntax highlighting. |
|
| `type` | Code type used for syntax highlighting. |
|
||||||
|
| `startLine` | Optional. The line number to start the import from. |
|
||||||
|
| `endLine` | Optional. The line number to end the import at. |
|
||||||
|
|
||||||
|
|
||||||
<!-- prettier-ignore-end -->
|
<!-- prettier-ignore-end -->
|
||||||
@@ -210,6 +212,13 @@ This shortcode is for importing code from external sources easily without copyin
|
|||||||
```
|
```
|
||||||
{{< codeimporter url="https://raw.githubusercontent.com/nunocoracao/blowfish/main/layouts/shortcodes/mdimporter.html" type="go" >}}
|
{{< codeimporter url="https://raw.githubusercontent.com/nunocoracao/blowfish/main/layouts/shortcodes/mdimporter.html" type="go" >}}
|
||||||
|
|
||||||
|
```md
|
||||||
|
{{</* codeimporter url="https://raw.githubusercontent.com/nunocoracao/blowfish/main/config/_default/hugo.toml" type="c" startLine="11" endLine="18" */>}}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
{{< codeimporter url="https://raw.githubusercontent.com/nunocoracao/blowfish/main/config/_default/hugo.toml" type="c" startLine="11" endLine="18">}}
|
||||||
|
|
||||||
|
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
|
|||||||
@@ -197,7 +197,8 @@ This shortcode is for importing code from external sources easily without copyin
|
|||||||
| --------- | ------------------------------------------------------- |
|
| --------- | ------------------------------------------------------- |
|
||||||
| `url` | **Required** URL to an externally hosted code file. |
|
| `url` | **Required** URL to an externally hosted code file. |
|
||||||
| `type` | Code type used for syntax highlighting. |
|
| `type` | Code type used for syntax highlighting. |
|
||||||
|
| `startLine` | Optional. The line number to start the import from. |
|
||||||
|
| `endLine` | Optional. The line number to end the import at. |
|
||||||
|
|
||||||
<!-- prettier-ignore-end -->
|
<!-- prettier-ignore-end -->
|
||||||
|
|
||||||
@@ -210,6 +211,13 @@ This shortcode is for importing code from external sources easily without copyin
|
|||||||
```
|
```
|
||||||
{{< codeimporter url="https://raw.githubusercontent.com/nunocoracao/blowfish/main/layouts/shortcodes/mdimporter.html" type="go" >}}
|
{{< codeimporter url="https://raw.githubusercontent.com/nunocoracao/blowfish/main/layouts/shortcodes/mdimporter.html" type="go" >}}
|
||||||
|
|
||||||
|
```md
|
||||||
|
{{</* codeimporter url="https://raw.githubusercontent.com/nunocoracao/blowfish/main/config/_default/hugo.toml" type="c" startLine="11" endLine="18" */>}}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
{{< codeimporter url="https://raw.githubusercontent.com/nunocoracao/blowfish/main/config/_default/hugo.toml" type="c" startLine="11" endLine="18">}}
|
||||||
|
|
||||||
|
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
|
|||||||
@@ -197,6 +197,8 @@ This shortcode is for importing code from external sources easily without copyin
|
|||||||
| --------- | ------------------------------------------------------- |
|
| --------- | ------------------------------------------------------- |
|
||||||
| `url` | **Required** URL to an externally hosted code file. |
|
| `url` | **Required** URL to an externally hosted code file. |
|
||||||
| `type` | Code type used for syntax highlighting. |
|
| `type` | Code type used for syntax highlighting. |
|
||||||
|
| `startLine` | Optional. The line number to start the import from. |
|
||||||
|
| `endLine` | Optional. The line number to end the import at. |
|
||||||
|
|
||||||
|
|
||||||
<!-- prettier-ignore-end -->
|
<!-- prettier-ignore-end -->
|
||||||
@@ -210,6 +212,13 @@ This shortcode is for importing code from external sources easily without copyin
|
|||||||
```
|
```
|
||||||
{{< codeimporter url="https://raw.githubusercontent.com/nunocoracao/blowfish/main/layouts/shortcodes/mdimporter.html" type="go" >}}
|
{{< codeimporter url="https://raw.githubusercontent.com/nunocoracao/blowfish/main/layouts/shortcodes/mdimporter.html" type="go" >}}
|
||||||
|
|
||||||
|
```md
|
||||||
|
{{</* codeimporter url="https://raw.githubusercontent.com/nunocoracao/blowfish/main/config/_default/hugo.toml" type="c" startLine="11" endLine="18" */>}}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
{{< codeimporter url="https://raw.githubusercontent.com/nunocoracao/blowfish/main/config/_default/hugo.toml" type="c" startLine="11" endLine="18">}}
|
||||||
|
|
||||||
|
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
|
|||||||
@@ -197,6 +197,8 @@ data: {
|
|||||||
| --------- | ---------------------------------- |
|
| --------- | ---------------------------------- |
|
||||||
| `url` | **必需的** 外部托管代码文件的 URL. |
|
| `url` | **必需的** 外部托管代码文件的 URL. |
|
||||||
| `type` | 用于语法突出显示的代码类型. |
|
| `type` | 用于语法突出显示的代码类型. |
|
||||||
|
| `startLine` | **可选** 从代码文件中导入的起始行. |
|
||||||
|
| `endLine` | **可选** 从代码文件中导入的结束行. |
|
||||||
|
|
||||||
|
|
||||||
<!-- prettier-ignore-end -->
|
<!-- prettier-ignore-end -->
|
||||||
@@ -211,6 +213,13 @@ data: {
|
|||||||
|
|
||||||
{{< codeimporter url="https://raw.githubusercontent.com/nunocoracao/blowfish/main/layouts/shortcodes/mdimporter.html" type="go" >}}
|
{{< codeimporter url="https://raw.githubusercontent.com/nunocoracao/blowfish/main/layouts/shortcodes/mdimporter.html" type="go" >}}
|
||||||
|
|
||||||
|
```md
|
||||||
|
{{</* codeimporter url="https://raw.githubusercontent.com/nunocoracao/blowfish/main/config/_default/hugo.toml" type="c" startLine="11" endLine="18" */>}}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
{{< codeimporter url="https://raw.githubusercontent.com/nunocoracao/blowfish/main/config/_default/hugo.toml" type="c" startLine="11" endLine="18">}}
|
||||||
|
|
||||||
|
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user