Giter Site home page Giter Site logo

Comments (4)

natikgadzhi avatar natikgadzhi commented on June 26, 2024

I think that swift-docc-render should be responsible for the sitemap, as it's a web artifact, and docc itself just generates the inputs for it, right?

from swift-docc.

adam-rocska avatar adam-rocska commented on June 26, 2024

@natikgadzhi && @game-swoosh : Definitely, this is for the renderer.

from swift-docc.

mportiz08 avatar mportiz08 commented on June 26, 2024

Does this exist and if not, is it something that will be added?

This is not something that exists today.

I think a sitemap could potentially be a useful addition, but there are a couple of interesting quirks that may make it difficult to implement in the renderer itself:

  • while the .doccarchive artifact produced by DocC can be hosted as a standalone website, it can also be integrated into an existing website, so there could be some conflict with any sitemap generated for the docs and an existing website that it is being integrated into on the hosting side (probably not the common case though, so maybe not a big issue)
  • DocC-Render purposefully doesn't have any build process so that a single prebuilt version of it can be shared with n number of built documentation artifacts. This means that you don't need to have node installed (etc) on your system or as part of the doc compiler to actually build your documentation catalog, which is nice, however it means that DocC-Render doesn't really have any logic that can run as part of generating the website artifact, which would be needed to create something like a sitemap tailored to an individual documentation catalog
  • I think absolute URLs are usually expected in a sitemap and DocC-Render doesn't necessarily know where it's going to be hosted (could be multiple places even), so there would also need to be some build logic to configure the endpoint where the content will actually be hosted

If someone were to look into supporting this as a new feature/enhancement, I imagine that it may be much easier to implement in DocC itself—the logic used to generate the RenderIndex JSON file (which powers the sidebar navigation) would likely be very similar and maybe even tweaked to also generate a sitemap, since the data would be pretty similar.

from swift-docc.

d-ronnqvist avatar d-ronnqvist commented on June 26, 2024

@mportiz08 Sounds good. I'll transfer this issue back to DocC.

from swift-docc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.