Comments (8)
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.
@ebkalderon Assuming we didn't miss anything this should be fixed through #83 now. Please reopen if any other problems arise.
from cobalt.rs.
@johannhof @LucioFranco Will do. Thank you both!
from cobalt.rs.
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.
@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.
@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.
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.
Sure, I'll do that
from cobalt.rs.
Related Issues (20)
- Custom 404 HOT 1
- Provide real examples of cobalt base sites HOT 1
- Feature request: Atom 1.0 feeds HOT 3
- Keep timestamps of copied assets HOT 2
- Custom Markdown processor binary HOT 2
- install.sh fails HOT 1
- The json feed is not generated correctly HOT 2
- Dependency Dashboard
- Multilanguage / Localization Options with COBALT? HOT 1
- Use shell install error HOT 1
- Cobalt cannot find layout no matter where it is if src and destination specified in _cobalt.yml HOT 5
- Looks like 0.19.1 release was not completed HOT 2
- Whatβs easiest way to only preprocess liquid?
- Question about custom Collections (like: pages or categories) HOT 1
- move confusing "source" link out of README HOT 1
- cobalt serve --destination doesn't work
- default destination wrong in `cobalt build --help`
- Error while handling UTF-8 characters in HTML escape function
- cobalt serve shouldn't rebuild when an ignored files change HOT 1
- Cobalt processes vim .swp files in _layouts as templates, and warns
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cobalt.rs.