diff --git a/src/content/post/astro-mdx-anchor.mdx b/src/content/post/astro-mdx-anchor.mdx index 9605cd4..4e7b0ea 100644 --- a/src/content/post/astro-mdx-anchor.mdx +++ b/src/content/post/astro-mdx-anchor.mdx @@ -5,9 +5,6 @@ description: Astro で MDX のリンクを別タブで開く方法を紹介し tags: [astro, mdx] --- -import Anchor from "@components/Anchor.astro"; -export const components = { a: Anchor }; - 技術記事とかを読んでいると参考リンクが気になること、ありますよね。 「おっ、こっちの記事もよさそう」となったときにリンクをクリックすると元々記事を見ていたタブでリンクを開いてしまい、ため息をつきながら元のページに戻って、右クリックして新規タブを開く……みたいなことをしている人は多いのではないでしょうか。僕は毎日やっています。 diff --git a/src/content/post/book-efficient-linux-command-line.mdx b/src/content/post/book-efficient-linux-command-line.mdx index 71196c4..b35b2d3 100644 --- a/src/content/post/book-efficient-linux-command-line.mdx +++ b/src/content/post/book-efficient-linux-command-line.mdx @@ -5,9 +5,6 @@ description: オライリージャパンの「Efficient Linuxコマンドライ tags: [book, linux] --- -import Anchor from "@components/Anchor.astro"; -export const components = { a: Anchor }; - まえがきに入門書ではないと書かれていますが、読んだ感じとしてはコマンドライン入門者向けといった感じで、かなり良かったです。 head とか grep とか sed とかをはじめとして使う頻度が多そうなコマンドを実例とともに紹介してくれているだけでなく、シェルの機能も解説してくれていたのがありがたかったです。 diff --git a/src/content/post/book-practice-book-of-rust.mdx b/src/content/post/book-practice-book-of-rust.mdx index 1bef1a0..7d91e2e 100644 --- a/src/content/post/book-practice-book-of-rust.mdx +++ b/src/content/post/book-practice-book-of-rust.mdx @@ -6,9 +6,6 @@ tags: [book, rust] draft: true --- -import Anchor from '@components/Anchor.astro' -export const components = {a: Anchor} - - プログラミング Rust ではコメントが各行に書かれていたが、こちらではそれぞれの行に番号が振ってありサンプルコードの下にまとめて、この行は何をしているのかというのが書いてある diff --git a/src/content/post/book-programming-rust-2nd.mdx b/src/content/post/book-programming-rust-2nd.mdx index 598d0eb..2bcabe4 100644 --- a/src/content/post/book-programming-rust-2nd.mdx +++ b/src/content/post/book-programming-rust-2nd.mdx @@ -6,9 +6,6 @@ description: オライリージャパンの「プログラミングRust 第2版 tags: [book, rust] --- -import Anchor from "@components/Anchor.astro"; -export const components = { a: Anchor }; - けっこうなページ数があるので、読み終わるのにかなり時間がかかることを覚悟して読みましょう。 あらかた読んでから気づいたのですが、この本のように言語について網羅的に解説してあるものは最初から最後まで通して読むぞ!と意気込んで読むものではない気がしてきました。個人的にはページ数が多い本を読んでいると間々あることなのですが、「本を読み終える」ことを目的としてしまって途中から内容が入ってこなくなります。なので Rust について学びつつ、わからないことを都度かいつまんで調べて読むほうが良いかもしれません。 diff --git a/src/content/post/diff-between-array-and-new-array.mdx b/src/content/post/diff-between-array-and-new-array.mdx index 47af6bd..0420498 100644 --- a/src/content/post/diff-between-array-and-new-array.mdx +++ b/src/content/post/diff-between-array-and-new-array.mdx @@ -5,9 +5,6 @@ description: JavaScript で Array() と new Array() の違いが気になった tags: [javascript] --- -import Anchor from "@components/Anchor.astro"; -export const components = { a: Anchor }; - 基本的にはリテラルを使うと思いますが、中身はともかく長さが 10 の配列を作りたいときに以下のどちらかを使うなんてことも稀によくあるかと思います。 ```js diff --git a/src/content/post/frequently-used-git-commands.mdx b/src/content/post/frequently-used-git-commands.mdx index bacee04..f8afc71 100644 --- a/src/content/post/frequently-used-git-commands.mdx +++ b/src/content/post/frequently-used-git-commands.mdx @@ -5,9 +5,6 @@ description: 個人的にけっこう使うけど、オプションを忘れが tags: [git] --- -import Anchor from '@components/Anchor.astro'; -export const components = { a: Anchor }; - ## ブランチを作成して移動 ```sh diff --git a/src/content/post/try-vitest.mdx b/src/content/post/try-vitest.mdx index 53ab260..3ecccc7 100644 --- a/src/content/post/try-vitest.mdx +++ b/src/content/post/try-vitest.mdx @@ -5,9 +5,6 @@ description: 最近(半年くらい前) v1.0.0 が公開されたテスト tags: [test, vitest] --- -import Anchor from '@components/Anchor.astro' -export const components = { a: Anchor } - import ImageWrapper from "@components/ImageWrapper.astro"; import coverageV8NotInstalled from "@assets/20240420-try-vitest/vitest-coverage-package-not-installed.png" import coverageV8 from "@assets/20240420-try-vitest/vitest-coverage-v8.png" diff --git a/src/content/post/what-is-tsconfig.mdx b/src/content/post/what-is-tsconfig.mdx index 922d7b9..75d29bb 100644 --- a/src/content/post/what-is-tsconfig.mdx +++ b/src/content/post/what-is-tsconfig.mdx @@ -6,8 +6,6 @@ tags: [jsonxxx] draft: true --- -import Anchor from "../../components/Anchor.astro"; -export const components = { a: Anchor }; import ImageWrapper from "../../components/ImageWrapper.astro"; import tsconfigFileFormat from "../../assets/20240110-what-is-tsconfig/tsconfig-file-format.png"; import chatGptDoesntKnow from "../..//assets/20240110-what-is-tsconfig/chatgpt-doesnt-know-jsonc-specification.png";