Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/1-trial-session/08-loop/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ i++;

:::


## for 文

`for` 文は、`while` 文にほんの少しだけ機能を追加したものになります。
Expand Down
2 changes: 1 addition & 1 deletion docs/1-trial-session/14-events/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ HTMLファイルに一工夫が必要です。見えない`<div>` タグを用

</Details>

<ViewSource url={import.meta.url} path="_samples/project-jack-in-a-box/" />
<ViewSource url={import.meta.url} path="_samples/project-jack-in-a-box/" />
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ここ何も違わないように見えるんですが、何が変わっているんでしょうか?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

最後の空行ですね。
ファイルの最後の行の末尾に改行を入れるとこういう表示になります。
Prettierだと最後の行に空行を入れるみたいです。

2 changes: 1 addition & 1 deletion docs/3-web-servers/04-server/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ app.listen(3000);
```

```html title=template.ejs
<!DOCTYPE html>
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8" />
Expand Down
4 changes: 2 additions & 2 deletions src/components/ViewSource/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ export default function ViewSource({ url, path, noCodeSandbox }) {
const commitRef = useDocusaurusContext()?.siteConfig.customFields.commitRef;
const gitHubUrl = new URL(
path,
`https://github.com/ut-code/utcode-learn/tree/${commitRef}/${basePath}`
`https://github.com/ut-code/utcode-learn/tree/${commitRef}/${basePath}`,
);
const codeSandboxUrl = new URL(
path,
`https://githubbox.com/ut-code/utcode-learn/tree/${commitRef}/${basePath}`
`https://githubbox.com/ut-code/utcode-learn/tree/${commitRef}/${basePath}`,
);
return (
<div className={styles.root}>
Expand Down