-
Notifications
You must be signed in to change notification settings - Fork 26
Improve README #130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Improve README #130
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,30 +1,42 @@ | ||
| Sources for https://profanity-im.github.io | ||
|
|
||
| Most site are edited by hand. | ||
|
|
||
| Top level pages are generated from xml sources using [sblg](https://kristaps.bsd.lv/sblg/). | ||
| The source file for the landing page is index.xml which contains html for everything other | ||
| than the header and footer. The source files for other top level pages are in the folder | ||
| `pagesource`. These are xml files which contain html content for everything other than the | ||
| header and footer. Edit them by hand. | ||
|
|
||
| Blog entry sources are in the directory `blogsource/content/post`. These are markdown | ||
| files which are processed by [lowdown](https://kristaps.bsd.lv/lowdown). To create a new | ||
| blog entry enter the directory `blogsource`. Run `blog-post.sh` to create a blog post | ||
| starter file. Edit the starter file created in `blogsource/content/post/` to add the | ||
| content for the blog post. If you do not have a contributor profile, please create one in | ||
| `blogsource/content/contributors`. See one of the existing contributor profiles for the | ||
| formatting. Optionally add an image in jpeg format with name `username.jpg` to be used with | ||
| your profile in `blogsource/content/contributors/img`. | ||
|
|
||
| Command references (main_fragment.html, toc_fragment.html), and apidocs are generated via | ||
| `profanity docgen`. See the | ||
| [release guide](https://github.com/profanity-im/profanity/blob/master/RELEASE_GUIDE.md) for | ||
| details. | ||
|
|
||
| GitHubActions will build and deploy the website for updates to blog entries and to changes in | ||
| the top level pages. | ||
|
|
||
| To build the site locally, type `make` in the top level directory. You will need to have | ||
| [sblg](https://kristaps.bsd.lv/sblg/) and [lowdown](https://kristaps/bsd.lv/lowdown) installed | ||
| on your system. | ||
| The website is generated from XML and Markdown sources using [sblg](https://kristaps.bsd.lv/sblg/) and [lowdown](https://kristaps.bsd.lv/lowdown). | ||
|
|
||
| ## Reference | ||
|
|
||
| | To Change... | Edit File(s) | Format | | ||
| | :--- | :--- | :--- | | ||
| | **Home Page (Landing)** | `index.xml` | XML Fragment | | ||
| | **Top-Level Pages** (FAQ, Donate, etc.) | `pagesource/*.xml` | XML Fragment | | ||
| | **Blog Posts** | `blogsource/content/post/*.md` | Markdown | | ||
| | **Blog User Profiles** | `blogsource/content/contributors/*.md` | Markdown | | ||
| | **Site Header/Footer (Home)** | `landing-template.xml` | HTML Template | | ||
| | **Site Header/Footer (Manuals)** | `manual-template.xml` | HTML Template | | ||
| | **Blog Post Layout** | `blogsource/content/post/blog-post-template.xml` | HTML Template | | ||
| | **Theme Gallery Layout** | `gallery-template.xml` | HTML Template | | ||
| | **Style** | `css/*.css` | CSS | | ||
|
|
||
| ### Page Sources | ||
| The source files for the landing page (`index.xml`) and other top level pages in `pagesource/` are XML fragments. They contain the HTML content for the body, which is then injected into the appropriate header and footer templates. | ||
|
|
||
| ### Blog | ||
| Blog posts and contributor profiles are written in Markdown. | ||
|
|
||
| To create a new blog entry: | ||
| 1. Enter the directory `blogsource`. | ||
| 2. Run `./blog-post.sh` to create a starter file in `blogsource/content/post/`. | ||
| 3. Edit the new `.md` file to add your content. | ||
|
|
||
| If you do not have a contributor profile, please create one in `blogsource/content/contributors/` using an existing profile as a template. You can optionally add a JPEG image (named `username.jpg`) to `blogsource/content/contributors/img/`. | ||
|
|
||
| ### Documentation | ||
| Command references (`main_fragment.html`, `toc_fragment.html`) and apidocs are generated via `profanity docgen`. See the [release guide](https://github.com/profanity-im/profanity/blob/master/RELEASE_GUIDE.md) for details. | ||
|
|
||
| ### Build & Deploy | ||
| GitHub Actions will automatically build and deploy the website to GitHub Pages on every push. | ||
|
|
||
| To build the site locally, run `make` in the top level directory. You will need `sblg` and `lowdown` installed on your system. | ||
|
|
||
| To preview the site locally, run `make install` which will create a directory `site`, open `site/index.html` in a web browser. | ||
|
|
||
| To remove the generated files and keep the source files, run `make clean`. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.