Skip to content

Commit

Permalink
Merge pull request #840 from vorth/edit-simple-link
Browse files Browse the repository at this point in the history
Added share README link to edit simple page
  • Loading branch information
vorth authored Mar 26, 2024
2 parents f81440f + 277115d commit 8c7ecde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions desktop/src/main/java/org/vorthmann/zome/ui/ShareDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,8 @@ private void doUpload()
// e.g. https://vorth.github.io/vzome-sharing/2021/11/29/sample-vZome-share-08-01-41.html
String postSrcUrl = repoUrl + "/edit/" + this.branchName + "/" + postSrcPath;
// e.g. https://github.com/vorth/vzome-sharing/edit/main/_posts/2021-11-29-sample-vZome-share-08-01-41.md
String indexSrcUrl = repoUrl + "/edit/" + this.branchName + "/" + assetPath + "index.md";
// e.g. https://github.com/vorth/vzome-sharing/edit/main/_posts/2021-11-29-sample-vZome-share-08-01-41.md

// Generate a shareable page for the vZome user to use, not a blog post
String indexMd = this.indexTemplate
Expand All @@ -592,6 +594,7 @@ private void doUpload()
.replace( "${assetPath}", assetPath )
.replace( "${imagePath}", imagePath )
.replace( "${designPath}", designPath )
.replace( "${indexSrcUrl}", indexSrcUrl )
.replace( "${rawUrl}", rawUrl );

if ( this .controller .propertyIsTrue( "sharing-generatePost" ) ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
## How to Use or Share this Design

- [***simple web page***](<${siteUrl}/${assetPath}>) to just share this design; *try it before you share it!*
- [source file for that web page](<${indexSrcUrl}>); click to customize
- [raw vZome file](<${rawUrl}>) to use in vZome desktop or vZome Online

HTML for embedding in any web page:
Expand Down

0 comments on commit 8c7ecde

Please sign in to comment.