GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    ドッグ (linda_pp@mstdn.jp)'s status on Wednesday, 12-Feb-2025 21:26:12 JST ドッグ ドッグ

    #![doc = include_str!("../README.md")]

    で README.md を取り込むの結構厳しい.コードブロックを Rust コードだと認識させないために

    ```ignore
    ...
    ```

    とかしないとけないんだけど,GitHub だと ignore は gitignore とかのハイライトが割り当てられてるので困る

    In conversation about 3 months ago from mstdn.jp permalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: ik.imagekit.io
      Changelog
      Announce updates and news to your users with Changelog.md
    • Embed this notice
      naskya::dev (dev@post.naskya.net)'s status on Wednesday, 12-Feb-2025 21:26:12 JST naskya::dev naskya::dev
      in reply to

      @Linda_pp@mstdn.jp ignore の代わりに rust,ignore を使うのはどうでしょう(試していないので使えなかったらごめんなさい)

      In conversation about 3 months ago permalink
    • Embed this notice
      naskya::dev (dev@post.naskya.net)'s status on Wednesday, 12-Feb-2025 21:34:46 JST naskya::dev naskya::dev
      in reply to

      @Linda_pp@mstdn.jp なるほど、README に書かれているコードが Rust じゃないんですね
      それはどうしようもなさそうですね……

      In conversation about 3 months ago permalink
    • Embed this notice
      ドッグ (linda_pp@mstdn.jp)'s status on Wednesday, 12-Feb-2025 21:34:47 JST ドッグ ドッグ
      in reply to
      • naskya::dev

      @dev それだと Rust としてハイライトされてしまうんですよね… 純粋にハイライトされていないコードブロックがほしいのですが

      In conversation about 3 months ago permalink
    • Embed this notice
      naskya::dev (dev@post.naskya.net)'s status on Sunday, 09-Mar-2025 10:34:54 JST naskya::dev naskya::dev
      in reply to

      @Linda_pp@mstdn.jp 既に見つけられたかもしれませんが、```custom というのがあるみたいです。
      https://doc.rust-lang.org/rustdoc/write-documentation/documentation-tests.html#custom-css-classes-for-code-blocks

      また、これに関する公式ドキュメントを探せませんでしたが axum の使用例の中に ```not_rust という記述を見つけました
      https://github.com/tokio-rs/axum/blob/da3539cb0e5eed381361b2e688a776da77c52cd6/examples/todos/src/main.rs#L12

      In conversation about 2 months ago permalink

      Attachments

      1. No result found on File_thumbnail lookup.
        Documentation tests - The rustdoc book
      2. Domain not in remote thumbnail source whitelist: opengraph.githubassets.com
        axum/examples/todos/src/main.rs at da3539cb0e5eed381361b2e688a776da77c52cd6 · tokio-rs/axum
        Ergonomic and modular web framework built with Tokio, Tower, and Hyper - tokio-rs/axum
    • Embed this notice
      ドッグ (linda_pp@mstdn.jp)'s status on Monday, 10-Mar-2025 00:03:37 JST ドッグ ドッグ
      in reply to
      • naskya::dev

      @dev 情報ありがとうございます🙏 今回は include_str! するのをやめて README と API ドキュメントは別々に書いてしまいましたが,次同じようなことしたい時に検討してみます.

      In conversation about 2 months ago permalink
      naskya::dev likes this.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.