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
2 changes: 1 addition & 1 deletion docs/01python/02get-started/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_position: 2
---

import ViewSource from "@site/src/components/ViewSource/ViewSource";
import ViewSource from "@site/src/components/ViewSource";
import Answer from "@site/src/components/Answer";

# はじめての Python
Expand Down
2 changes: 1 addition & 1 deletion docs/01python/03expressions/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_position: 3
---

import ViewSource from "@site/src/components/ViewSource/ViewSource";
import ViewSource from "@site/src/components/ViewSource";
import Answer from "@site/src/components/Answer";

# 式と演算子
Expand Down
2 changes: 1 addition & 1 deletion docs/01python/04variables/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_position: 4
---

import ViewSource from "@site/src/components/ViewSource/ViewSource";
import ViewSource from "@site/src/components/ViewSource";
import Answer from "@site/src/components/Answer";

# 変数
Expand Down
2 changes: 1 addition & 1 deletion docs/01python/05function/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_position: 5
---

import ViewSource from "@site/src/components/ViewSource/ViewSource";
import ViewSource from "@site/src/components/ViewSource";
import Answer from "@site/src/components/Answer";

# 関数
Expand Down
2 changes: 1 addition & 1 deletion docs/01python/06library/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_position: 6
---

import ViewSource from "@site/src/components/ViewSource/ViewSource";
import ViewSource from "@site/src/components/ViewSource";
import Answer from "@site/src/components/Answer";

# ライブラリ
Expand Down
2 changes: 1 addition & 1 deletion docs/01python/07pip/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_position: 7
---

import ViewSource from "@site/src/components/ViewSource/ViewSource";
import ViewSource from "@site/src/components/ViewSource";
import Answer from "@site/src/components/Answer";

# パッケージのインストール
Expand Down
2 changes: 1 addition & 1 deletion docs/01python/08for/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_position: 8
---

import ViewSource from "@site/src/components/ViewSource/ViewSource";
import ViewSource from "@site/src/components/ViewSource";
import Answer from "@site/src/components/Answer";

# 繰り返し処理
Expand Down
2 changes: 1 addition & 1 deletion docs/01python/09array/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_position: 9
---

import ViewSource from "@site/src/components/ViewSource/ViewSource";
import ViewSource from "@site/src/components/ViewSource";
import Answer from "@site/src/components/Answer";

# 配列
Expand Down
2 changes: 1 addition & 1 deletion docs/01python/10multi-array/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_position: 10
---

import ViewSource from "@site/src/components/ViewSource/ViewSource";
import ViewSource from "@site/src/components/ViewSource";
import Answer from "@site/src/components/Answer";

# 多次元配列
Expand Down
2 changes: 1 addition & 1 deletion docs/01python/11if/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_position: 11
---

import ViewSource from "@site/src/components/ViewSource/ViewSource";
import ViewSource from "@site/src/components/ViewSource";
import Answer from "@site/src/components/Answer";

# 条件分岐
Expand Down
2 changes: 1 addition & 1 deletion docs/01python/12practice/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_position: 12
---

import ViewSource from "@site/src/components/ViewSource/ViewSource";
import ViewSource from "@site/src/components/ViewSource";
import Answer from "@site/src/components/Answer";

# 練習問題
Expand Down
4 changes: 2 additions & 2 deletions docs/02advanced/01life-game/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
sidebar_position: 1
---

import ViewSource from "@site/src/components/ViewSource/ViewSource";
import ViewSource from "@site/src/components/ViewSource";
import Answer from "@site/src/components/Answer";
import LifeGame from "@site/src/components/LifeGame/LifeGame";
import LifeGame from "@site/src/components/LifeGame";

# ライフゲーム

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_position: 1
---

import ViewSource from "@site/src/components/ViewSource/ViewSource";
import ViewSource from "@site/src/components/ViewSource";
import Answer from "@site/src/components/Answer";

# 等速直線運動
Expand Down
2 changes: 1 addition & 1 deletion docs/02advanced/03simulation/02parabolic_motion/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_position: 2
---

import ViewSource from "@site/src/components/ViewSource/ViewSource";
import ViewSource from "@site/src/components/ViewSource";
import Answer from "@site/src/components/Answer";

# 放物運動
Expand Down
2 changes: 1 addition & 1 deletion docs/02advanced/03simulation/03resisted_motion/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_position: 3
---

import ViewSource from "@site/src/components/ViewSource/ViewSource";
import ViewSource from "@site/src/components/ViewSource";
import Answer from "@site/src/components/Answer";

# 速度に比例した抵抗がある投げ上げ運動
Expand Down
2 changes: 1 addition & 1 deletion docs/02advanced/04recursion/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_position: 4
---

import ViewSource from "@site/src/components/ViewSource/ViewSource";
import ViewSource from "@site/src/components/ViewSource";
import Answer from "@site/src/components/Answer";

# 再帰
Expand Down
2 changes: 1 addition & 1 deletion docs/02advanced/05monte-carlo/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_position: 5
---

import ViewSource from "@site/src/components/ViewSource/ViewSource";
import ViewSource from "@site/src/components/ViewSource";
import Answer from "@site/src/components/Answer";

# モンテカルロ法
Expand Down
2 changes: 1 addition & 1 deletion docs/02advanced/06search-algorithm/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_position: 6
---

import ViewSource from "@site/src/components/ViewSource/ViewSource";
import ViewSource from "@site/src/components/ViewSource";
import Answer from "@site/src/components/Answer";

# 探索
Expand Down
2 changes: 1 addition & 1 deletion docs/03extras/04website/01html/01html/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_position: 1
---

import InteractiveCodeEditor from "@site/src/components/InteractiveCodeEditor/InteractiveCodeEditor";
import InteractiveCodeEditor from "@site/src/components/InteractiveCodeEditor";
import Answer from "@site/src/components/Answer";
import IframeOutput from "@site/src/components/IframeOutput";

Expand Down
4 changes: 2 additions & 2 deletions docs/03extras/04website/02docusaurus/01markdown/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
sidebar_position: 1
---

import InteractiveCodeEditor from "@site/src/components/InteractiveCodeEditor/InteractiveCodeEditor";
import LifeGame from "@site/src/components/LifeGame/LifeGame";
import InteractiveCodeEditor from "@site/src/components/InteractiveCodeEditor";
import LifeGame from "@site/src/components/LifeGame";
export const defaultMathValue = `\
$a^2 + b^2 = c^2$
$$
Expand Down
2 changes: 1 addition & 1 deletion docs/03extras/04website/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sidebar_position: 4
---

import DocCardList from "@theme/DocCardList";
import InteractiveCodeEditor from "@site/src/components/InteractiveCodeEditor/InteractiveCodeEditor";
import InteractiveCodeEditor from "@site/src/components/InteractiveCodeEditor";

# このシケプリの作り方

Expand Down
2 changes: 1 addition & 1 deletion docs/03extras/05tex/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import installTexLive from "./install_texlive.mov";
import typesetTex from "./typeset_tex.mp4";
import InteractiveCodeEditor from "@site/src/components/InteractiveCodeEditor/InteractiveCodeEditor";
import InteractiveCodeEditor from "@site/src/components/InteractiveCodeEditor";

# $\LaTeX$ の導入

Expand Down
5 changes: 2 additions & 3 deletions src/components/Answer.tsx → src/components/Answer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/* eslint-disable react/prop-types */
import React from "react";
import React, { type ReactNode } from "react";
import Details from "@theme/Details";

/**
* 解答を書くための、コンポーネント
*/
export default function Answer({ children }) {
export default function Answer({ children }: { children: ReactNode }) {
return <Details summary={<summary>解答</summary>}>{children}</Details>;
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState, useEffect } from "react";
import Convert from "ansi-to-html";
import CodeBlock from "@theme/CodeBlock";
import mdToHTML from "@site/src/components/mdToHTML";
import OpenInColab from "@site/src/components/OpenInColab/OpenInColab";
import OpenInColab from "@site/src/components/OpenInColab";
import styles from "./styles.module.css";

type MarkdownCell = { cell_type: "markdown"; source: string };
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/theme/ReactLiveScope/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import LifeGameTmp from "@site/src/components/LifeGame/LifeGame";
import LifeGameTmp from "@site/src/components/LifeGame";
// Add react-live imports you need here

function LifeGame() {
Expand Down