···6677### Build tool
8899+- The build tool now generates Hexdocs URLs using the new format of
1010+ `package.hexdocs.pm` rather than `hexdocs.pm/package`.
1111+ ([Surya Rose](https://github.com/GearsDatapacks))
1212+913### Language server
10141115### Formatter
···176176}
177177178178pub fn default_readme(project_name: &str) -> String {
179179+ let project_name_with_dashes = project_name.replace('_', "-");
180180+179181 format!(
180182 r#"# {project_name}
181183182184[](https://hex.pm/packages/{project_name})
183183-[](https://hexdocs.pm/{project_name}/)
185185+[](https://{project_name_with_dashes}.hexdocs.pm/)
184186185187```sh
186188gleam add {project_name}@1
···193195}}
194196```
195197196196-Further documentation can be found at <https://hexdocs.pm/{project_name}>.
198198+Further documentation can be found at <https://{project_name_with_dashes}.hexdocs.pm/>.
197199198200## Development
199201
···33## Adding a New API Function
44551. Figure out what you want to do
66- - Go to https://hexdocs.pm/hex/Mix.Tasks.Hex.html and find what you want to do
66+ - Go to https://hex.hexdocs.pm/Mix.Tasks.Hex.html and find what you want to do
772. Once you find the page, click on the code icon on the top-right to go to the corresponding source code like so: https://github.com/hexpm/hex/blob/main/lib/mix/tasks/hex.owner.ex#L125
88```elixir
99 defp transfer_owner(organization, package, owner) do
···5757```
5858Note that the `api_key` and `config` fields will always be present in these request functions while the other fields are tailored to the specific request we want to make.
59596060-4. TODO: How to figure out what to write for the response function?6060+4. TODO: How to figure out what to write for the response function?
···302302303303#[test]
304304fn hover_external_imported_function_nested_module() {
305305- // Example of HexDocs link with nested modules: https://hexdocs.pm/lustre/lustre/element/svg.html
305305+ // Example of HexDocs link with nested modules: https://lustre.hexdocs.pm/lustre/element/svg.html
306306 let code = "
307307import my/nested/example_module
308308fn main() {
···1616wobble.Wibble
1717```
18181919-View on [HexDocs](https://hexdocs.pm/hex/wibble/wobble.html#Wibble)
1919+View on [HexDocs](https://hex.hexdocs.pm/wibble/wobble.html#Wibble)
···1212Wobble
1313```
14141515-View on [HexDocs](https://hexdocs.pm/hex/wibble/wobble.html#Wobble)
1515+View on [HexDocs](https://hex.hexdocs.pm/wibble/wobble.html#Wobble)
···1616Int
1717```
18181919-View on [HexDocs](https://hexdocs.pm/hex/b/example_module.html#my_const)
1919+View on [HexDocs](https://hex.hexdocs.pm/b/example_module.html#my_const)
···1515Int
1616```
17171818-View on [HexDocs](https://hexdocs.pm/hex/example_module.html#my_const)
1818+View on [HexDocs](https://hex.hexdocs.pm/example_module.html#my_const)
···1515fn() -> Nil
1616```
17171818-View on [HexDocs](https://hexdocs.pm/hex/example_module.html#my_fn)
1818+View on [HexDocs](https://hex.hexdocs.pm/example_module.html#my_fn)
···1515fn() -> Nil
1616```
17171818-View on [HexDocs](https://hexdocs.pm/hex/example_module.html#my_fn)
1818+View on [HexDocs](https://hex.hexdocs.pm/example_module.html#my_fn)
···1515fn() -> Nil
1616```
17171818-View on [HexDocs](https://hexdocs.pm/hex/my/nested/example_module.html#my_fn)
1818+View on [HexDocs](https://hex.hexdocs.pm/my/nested/example_module.html#my_fn)
···1515fn() -> Nil
1616```
17171818-View on [HexDocs](https://hexdocs.pm/hex/example_module.html#my_fn)
1818+View on [HexDocs](https://hex.hexdocs.pm/example_module.html#my_fn)
···1515Int
1616```
17171818-View on [HexDocs](https://hexdocs.pm/hex/example_module.html#my_const)
1818+View on [HexDocs](https://hex.hexdocs.pm/example_module.html#my_const)
···1515fn() -> Nil
1616```
17171818-View on [HexDocs](https://hexdocs.pm/hex/example_module.html#my_fn)
1818+View on [HexDocs](https://hex.hexdocs.pm/example_module.html#my_fn)
···1515fn() -> Nil
1616```
17171818-View on [HexDocs](https://hexdocs.pm/hex/example_module.html#my_fn)
1818+View on [HexDocs](https://hex.hexdocs.pm/example_module.html#my_fn)
···1616Int
1717```
18181919-View on [HexDocs](https://hexdocs.pm/hex/b/example_module.html#my_const)
1919+View on [HexDocs](https://hex.hexdocs.pm/b/example_module.html#my_const)
···1717 Exciting documentation
1818 Maybe even multiple lines
19192020-View on [HexDocs](https://hexdocs.pm/hex/example_module.html#my_num)
2020+View on [HexDocs](https://hex.hexdocs.pm/example_module.html#my_num)
···1515 Here is some documentation about it.
1616 This module does stuff
17171818-View on [HexDocs](https://hexdocs.pm/hex/wibble.html)
1818+View on [HexDocs](https://hex.hexdocs.pm/wibble.html)
···1919 Here is some documentation about it.
2020 This module does stuff
21212222-View on [HexDocs](https://hexdocs.pm/hex/wibble.html)
2222+View on [HexDocs](https://hex.hexdocs.pm/wibble.html)
···1919 Here is some documentation about it.
2020 This module does stuff
21212222-View on [HexDocs](https://hexdocs.pm/hex/wibble.html)
2222+View on [HexDocs](https://hex.hexdocs.pm/wibble.html)
···1717```
1818 The module documentation
19192020-View on [HexDocs](https://hexdocs.pm/hex/wibble/wobble.html)
2020+View on [HexDocs](https://hex.hexdocs.pm/wibble/wobble.html)
···11# test_community_packages
2233[](https://hex.pm/packages/test_community_packages)
44-[](https://hexdocs.pm/test_community_packages/)
44+[](https://test-community-packages.hexdocs.pm/)
5566```sh
77gleam add test_community_packages
···1414}
1515```
16161717-Further documentation can be found at <https://hexdocs.pm/test_community_packages>.
1717+Further documentation can be found at <https://test-community-packages.hexdocs.pm>.
18181919## Development
2020
···11# default_readme
2233[](https://hex.pm/packages/default_readme)
44-[](https://hexdocs.pm/default_readme/)
44+[](https://default-readme.hexdocs.pm/)
5566```sh
77gleam add default_readme@1
···1414}
1515```
16161717-Further documentation can be found at <https://hexdocs.pm/default_readme>.
1717+Further documentation can be found at <https://default-readme.hexdocs.pm>.
18181919## Development
2020