From 5906967a23071461d6d1f22cbb524fe56f184aef Mon Sep 17 00:00:00 2001 From: Phil Chen <06fahchen@gmail.com> Date: Sat, 6 Jul 2024 11:43:37 +0800 Subject: [PATCH] doc: update links --- README.md | 4 ++-- lib/typed_structor/plugin.ex | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ccaa893..3ab24f2 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # TypedStructor [![Build Status](https://github.com/elixir-typed-structor/typed_structor/actions/workflows/elixir.yml/badge.svg)](https://github.com/elixir-typed-structor/typed_structor/actions/workflows/elixir.yml) -[![Hex.pm](https://img.shields.io/hexpm/v/typed_structor.svg)](https://hex.pm/packages/typed_structor) -[![Documentation](https://img.shields.io/badge/documentation-gray)](https://hexdocs.pm/typed_structor/) +[![Hex.pm](https://img.shields.io/hexpm/v/typed_structor?style=flat)](https://hex.pm/packages/typed_structor) +[![Document](https://img.shields.io/badge/hex-doc-blue?style=flat)](https://hexdocs.pm/typed_structor) diff --git a/lib/typed_structor/plugin.ex b/lib/typed_structor/plugin.ex index 84d9c20..6b9e038 100644 --- a/lib/typed_structor/plugin.ex +++ b/lib/typed_structor/plugin.ex @@ -13,6 +13,12 @@ defmodule TypedStructor.Plugin do * `c:after_definition/2`: This macro callback is called right after defining the struct. Note that plugins will run in the **reverse** order they are registered. + > #### Plugins guides {: .tip} + > + > Here are some [Plugin Guides](guides/plugins/introduction.md) + > for creating your own plugins. Please check them out + > and feel free to copy-paste the code. + ### Example Let's define a plugin that defines `Ecto.Schema` while defining a typed struct.