Comments (6)
One issue is with relativeRootPath, that can be fixed like this
/**
* Normalize the path to Unix style root path. Removes drive letter and appends the "/" symbol. Also converts
* backslashes to slashes.
*/
def toUnixStyleRootPath(pathString: String): String = toUnixStyleRootPath(Paths.get(pathString))
/**
* Normalize the path to Unix style root path. Removes drive letter and appends the "/" symbol. Also converts
* backslashes to slashes.
*/
def toUnixStyleRootPath(path: Path): String = {
val fullPathWithDriveLetter = path.toAbsolutePath
val fullPathString =
if (fullPathWithDriveLetter.getRoot ne null)
"\\" + fullPathWithDriveLetter.getRoot.relativize(fullPathWithDriveLetter).toString
else
fullPathWithDriveLetter.toString
fullPathString.replace(File.separatorChar, '/')
}
/**
* Provide the relative root path from a local path related to a full path
*/
def relativeRootPath(file: File, localPath: String): String = {
val pathString = toUnixStyleRootPath(file.toPath)
if (pathString.endsWith(localPath)) pathString.dropRight(localPath.length) else pathString
}
from paradox.
Also update
/**
* Provide the local path given the root path and the full path
*/
def relativeLocalPath(rootPath: String, fullPath: String): String = {
val root = new URI(toUnixStyleRootPath(rootPath))
val full = new URI(toUnixStyleRootPath(fullPath))
root.relativize(full).toString
}
from paradox.
Fixed one more bug. I have no push rights, and I am too lazy to clone, so I just send you a patch.
Fix__42_and_other_Windows_lang_issues.patch.txt
from paradox.
Please release a new version soon, so I can use that as a dependency in Akka instead of my local SNAPSHOT.
from paradox.
0.2.6 is on its way to Maven Central
from paradox.
Great, thanks!
from paradox.
Related Issues (20)
- Snippet inclusion: switch off link to GitHub per snippet
- scoping of settings (e.g. 'sourceDirectory in (Compile, paradox)') HOT 1
- Warn about scala binary version suffix on dependencies HOT 5
- Generate PDF (other architecture)
- Anchors below tabs don't correctly scroll in Firefox HOT 1
- Option to use highlightjs for syntax highlighting HOT 6
- Sublists are not rendered as expected HOT 1
- Explicitly specifying language on fenced block doesn't work HOT 3
- Unable to define the source_url base when the input source is a generated directory HOT 7
- Tabbed groups not working with 0.9.0 release HOT 2
- Please include sbt-paradox-reveal in your extension list HOT 3
- Support retry count for validate link tasks HOT 1
- Java 16 support HOT 3
- override anchor HOT 1
- Very slow HOT 1
- Support blob links as part of Github Directive
- Migrate from scalariform to scalafmt HOT 4
- @apidoc doesn't support line break
- Error creating extended parser class HOT 2
- Formatting not honored inside @scaladoc links
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 paradox.