Jump to page: 1 2
Thread overview
New WIP DUB documentation
Aug 15, 2022
WebFreak001
Aug 15, 2022
rikki cattermole
Aug 16, 2022
Anonymouse
Aug 16, 2022
Ruby The Roobster
Aug 16, 2022
Sönke Ludwig
Aug 16, 2022
WebFreak001
Aug 16, 2022
JG
Aug 16, 2022
jmh530
Aug 18, 2022
Bastiaan Veelo
Aug 18, 2022
Guillaume Piolat
Aug 18, 2022
Sönke Ludwig
Aug 18, 2022
Bastiaan Veelo
Aug 24, 2022
Mathias LANG
Aug 24, 2022
Andrey Zherikov
Aug 24, 2022
bauss
August 15, 2022

Hi all, I'm currently working on new revamped DUB documentation, check it out if you want, it currently contains most old documentation plus a big bunch of new documentation:

https://docs.webfreak.org/

Repository: https://github.com/WebFreak001/dub-docs-v2

Instead of being based on diet templates and needing to be compiled using dmd and build all of vibe.d, it now uses mkdocs with a customized mkdocs material theme, so now the documentation is Markdown based, which should be more familiar to a lot of people + it has a great offline search index and a bunch of interactive elements, that also work without JS.

The dub.json and dub.sdl documentation is now merged on the same page, where you can simply swap between them whenever you like. If you have JS enabled it will also sync it across the entire page and persist across page loads.

Writing the docs is really quite easy, you can have it locally be served by first installing the dependencies using

pip install -r requirements.txt

and then when working on it running

mkdocs serve

to have auto-updating docs in the browser. (auto refresh whenever you change anything)

So if you find any typos or want to complete the docs, feel free to open a PR on https://github.com/WebFreak001/dub-docs-v2

I plan to have easily discoverable edit links linked on the page soon too, which should theoretically just be a simple mkdocs configuration thing that's probably already implemented.

Someone from the community has already contributed a dark theme to it. :)

new dub documentation preview screenshot

August 16, 2022
It is pretty awesome, a lot easier to digest and get into!
August 16, 2022

On Monday, 15 August 2022 at 21:32:23 UTC, WebFreak001 wrote:

>

[...]

I like it!

Can anything be done about the width of the buildOptions table though? The whole page takes up about about half of my horizontal screen real estate, yet the "corresponding GDC flags" column is still partially out of view until I scroll right. I'm on a laptop so I can do horizontal scrolls by gesture, but I imagine a user with only vertical scrolling has to navigate all the way down to the bottom of the table to get the horizontal scroll bar to show?

(I don't know how to solve it neatly but I thought I'd mention it.)

August 16, 2022

On Monday, 15 August 2022 at 21:32:23 UTC, WebFreak001 wrote:

>

[SNIP]

I like the idea, making dub easier to learn for those who are unfamiliar, but I have a singular request: Could you do a section on setting up a copy of dub-registry?

August 16, 2022
Looking good, having SDL+JSON on the same page is especially nice and something I've been wanting to fix for a while. Also definitely a good idea to use a static generator now that the documentation is separate.

One question, though - do you generate the CLI documentation from the DUB sources, or is that manual work?

August 16, 2022

On Monday, 15 August 2022 at 21:32:23 UTC, WebFreak001 wrote:

>

Hi all, I'm currently working on new revamped DUB documentation, check it out if you want, it currently contains most old documentation plus a big bunch of new documentation:

[...]

Looks really great. Thanks for doing this.

August 16, 2022
On Tuesday, 16 August 2022 at 08:13:08 UTC, Sönke Ludwig wrote:
> Looking good, having SDL+JSON on the same page is especially nice and something I've been wanting to fix for a while. Also definitely a good idea to use a static generator now that the documentation is separate.
>
> One question, though - do you generate the CLI documentation from the DUB sources, or is that manual work?

for the CLI documentation I modified the man generator to output markdown instead of man formatting, still need to PR that
August 16, 2022

On Monday, 15 August 2022 at 21:32:23 UTC, WebFreak001 wrote:

>

Hi all, I'm currently working on new revamped DUB documentation, check it out if you want, it currently contains most old documentation plus a big bunch of new documentation:

[...]

Looks go to be a big improvement.

Some of the paragraphs on this page are a bit long and might need to get broken up.
https://docs.webfreak.org/cli-reference/dub/

August 18, 2022

On Monday, 15 August 2022 at 21:32:23 UTC, WebFreak001 wrote:

>

Hi all, I'm currently working on new revamped DUB documentation, check it out if you want, it currently contains most old documentation plus a big bunch of new documentation:

https://docs.webfreak.org/

Thank you for doing this!

Not sure if this would be the right place, or if it is addressed already, but I repeatedly find myself looking for the right way to use a local checkout of a package instead of the dub registry, because I keep forgetting. It would be nice to have a section like (assuming I got it right):

Hacking on a local copy of a package

If your project depends on a package in which you have found a problem, or you would like to experiment with changes to it, you can force Dub to use a local copy of the package by following these steps:

  1. Fork the git repository
  2. Check out a local clone at /path/to/the_package
  3. Let Dub know about it:
    dub add-local /path/to/the_package
  4. Make Dub ignore any configured release tag, so you'll see the effect of current changes:
    dub add-override the_package * /path/to/the_package

Now you can go ahead and play. Once your PR has been merged and released, or you want to revert to upstream, undo your changes by

  1. dub remove-local /path/to/the_package
  2. dub remove-override the_package *

-- Bastiaan.

August 18, 2022

On Thursday, 18 August 2022 at 10:23:35 UTC, Bastiaan Veelo wrote:

>

Hacking on a local copy of a package

If your project depends on a package in which you have found a problem, or you would like to experiment with changes to it, you can force Dub to use a local copy of the package by following these steps:

  1. Fork the git repository
  2. Check out a local clone at /path/to/the_package
  3. Let Dub know about it:
    dub add-local /path/to/the_package
  4. Make Dub ignore any configured release tag, so you'll see the effect of current changes:
    dub add-override the_package * /path/to/the_package

Now you can go ahead and play. Once your PR has been merged and released, or you want to revert to upstream, undo your changes by

  1. dub remove-local /path/to/the_package
  2. dub remove-override the_package *

-- Bastiaan.

You can also simply to modify the tree in .dub or %appdata% and afterwards copy-paste the change to a git clone. It's more dangerous, but I think it's more straighforward too.

« First   ‹ Prev
1 2