Giter Club home page Giter Club logo

Comments (8)

johannhof avatar johannhof commented on September 13, 2024

That's probably because we use the Rust Path module for building relative paths and then convert them to URLs πŸ˜•

Maybe the quickest solution would simply be to replace \ with / before passing the url to the template.

from cobalt.rs.

johannhof avatar johannhof commented on September 13, 2024

@ebkalderon Assuming we didn't miss anything this should be fixed through #83 now. Please reopen if any other problems arise.

from cobalt.rs.

ebkalderon avatar ebkalderon commented on September 13, 2024

@johannhof @LucioFranco Will do. Thank you both!

from cobalt.rs.

natjms avatar natjms commented on September 13, 2024

It appears as though this issue might be affecting version 0.7.2 as well. Using Cobalt under a Linux environment runs flawlessly. However, every time I try to do so on Windows (Win10 in my case), a file named index.html in the docs directory, for an example, would become a file named docs\index.html (accessible from docs%5Cindex.html) at the root of the site.

from cobalt.rs.

epage avatar epage commented on September 13, 2024

@natejms Do you mind trying it against whats currently in git? I've major changes in this area with some (hopefully) improved test coverage. I'm curious what your results are.

Also is Rust building with msys or Visual Studio?

Some things that'd be helpful

  • cobalt's output when run with --verbose
  • Any relevant files from --dump DocLinkObject and --dump Document.

from cobalt.rs.

natjms avatar natjms commented on September 13, 2024

@epage Still no luck when building with what I got from Git ... I'm building with Visual Studio as far as I can tell.

I'm not sure which DocLinkObject and Document files would be relevant, but I do have everything on Github at this link (I've been testing with the cobalt-org website).

Upon further inspection, I can't reproduce the bug when running cobalt build. It seems like this only occurs when importing a build to another branch using cobalt import or cobalt build --import. Hopefully that helps a bit more.

from cobalt.rs.

epage avatar epage commented on September 13, 2024

Oh, sorry, I misunderstood. I thought the links were being formatted incorrectly. Instead the links are formatted correctly, but the files are created with a "\" in the path. Yikes.

This seems to be a separate issue from the one posted. Could you open a new issue for this so we can continue the conversation there (and ensure an open issue exists)?

from cobalt.rs.

natjms avatar natjms commented on September 13, 2024

Sure, I'll do that

from cobalt.rs.

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.