Last active
May 9, 2023 03:35
-
-
Save bsrz/72ccafe07322172073476beb0f90dcfc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ mint bootstrap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ mint run publish --help | |
| Publish Command Line Interface | |
| ------------------------------ | |
| Interact with the Publish static site generator from | |
| the command line, to create new websites, or to generate | |
| and deploy existing ones. | |
| Available commands: | |
| - new: Set up a new website in the current folder. | |
| - generate: Generate the website in the current folder. | |
| - run: Generate and run a localhost server on default port 8000 | |
| for the website in the current folder. Use the "-p" | |
| or "--port" option for customizing the default port. | |
| - deploy: Generate and deploy the website in the current | |
| folder, according to its deployment method. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ mint run publish run | |
| [...] # Dependencies being downloaded and built | |
| Building for debugging... | |
| Build complete! (0.14s) | |
| Publishing HelloPublish (6 steps) | |
| [1/6] Copy 'Resources' files | |
| [2/6] Add Markdown files from 'Content' folder | |
| [3/6] Sort items | |
| [4/6] Generate HTML | |
| [5/6] Generate RSS feed | |
| [6/6] Generate site map | |
| β Successfully published HelloPublish | |
| π Starting web server at http://localhost:8001 | |
| Press ENTER to stop the server and exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| JohnSundell/[email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ mkdir HelloPublish | |
| $ cd HelloPublish |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // swift-tools-version:5.5 | |
| import PackageDescription | |
| let package = Package( | |
| name: "HelloPublish", | |
| platforms: [.macOS(.v12)], | |
| products: [ | |
| .executable( | |
| name: "HelloPublish", | |
| targets: ["HelloPublish"] | |
| ) | |
| ], | |
| dependencies: [ | |
| .package(name: "Publish", url: "https://github.com/johnsundell/publish.git", from: "0.9.0") | |
| ], | |
| targets: [ | |
| .executableTarget( | |
| name: "HelloPublish", | |
| dependencies: ["Publish"] | |
| ) | |
| ] | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ mint run publish new | |
| π± Finding latest version of Publish | |
| π± Running publish-cli 0.9.0... | |
| β Generated website project for 'HelloPublish' | |
| Run 'open Package.swift' to open it and start building |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HelloPublish (root) | |
| βββ Content | |
| β βββ index.md | |
| β βββ posts | |
| β βββ first-post.md | |
| β βββ index.md | |
| βββ Mintfile | |
| βββ Output | |
| β βββ feed.rss | |
| β βββ index.html | |
| β βββ posts | |
| β β βββ first-post | |
| β β β βββ index.html | |
| β β βββ index.html | |
| β βββ sitemap.xml | |
| β βββ styles.css | |
| β βββ tags | |
| β βββ article | |
| β β βββ index.html | |
| β βββ first | |
| β β βββ index.html | |
| β βββ index.html | |
| βββ Package.resolved | |
| βββ Package.swift | |
| βββ Resources | |
| βββ Sources | |
| βββ HelloPublish | |
| βββ main.swift |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment