Skip to content

Commit

Permalink
fixed github
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellga committed Mar 24, 2024
1 parent 0cf3f2b commit f09a48a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rdocs"
version = "0.1.26"
version = "0.1.27"
edition = "2021"
repository = "https://github.com/daniellga/rdocs/"

Expand Down
2 changes: 1 addition & 1 deletion rdocs/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: rdocs
Title: Create Quarto documentation for R files from comments
Version: 0.1.26
Version: 0.1.27
Authors@R:
person("Daniel", "Gurgel", , "[email protected]", role = c("aut", "cre"))
Description: Generate R documentation in Quarto format based on comments in code files.
Expand Down
7 changes: 2 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,8 @@ fn generate_r_docs(
.unwrap();

// Remove a possible starting dot in path.
let filename_str = if filename.strip_prefix('.').is_some() {
&filename[1..]
} else {
&filename[..]
};
let filename_str =
Path::new(filename).file_name().unwrap().to_str().unwrap();

let source = "<span style=\"float: right;\"> [source](".to_string()
+ gh_url
Expand Down

0 comments on commit f09a48a

Please sign in to comment.