Skip to content

Commit

Permalink
hugo
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmray committed Aug 14, 2024
1 parent 2622ed4 commit 0aa900d
Show file tree
Hide file tree
Showing 17 changed files with 142 additions and 1,726 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,16 @@ jobs:
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v1
- run: |
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
cargo binstall --no-confirm mdbook-mermaid mdbook
mdbook build
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.131.0'
extended: true
- run: hugo --minify
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./book
path: ./public

# Deployment job
deploy:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/book
/public
Empty file added .hugo_build.lock
Empty file.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Xin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
12 changes: 0 additions & 12 deletions SUMMARY.md

This file was deleted.

16 changes: 0 additions & 16 deletions book.toml

This file was deleted.

17 changes: 17 additions & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: mmmray documents
---

Random articles I ([mmmray](https://github.com/mmmray)) wrote.

The site is available in two forms: As a bunch of [Markdown files on GitHub](https://github.com/mmmray/wall-documents), and [as a real website](https://mmmray.github.io/wall-documents/).

All articles are licensed as
[CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/deed.en). If you have a
translation I am happy to link or host it here.

{{< cards >}}
{{< card link="blog" title="Blog" icon="book-open" >}}
{{< card link="https://github.com/mmmray" title="GitHub" icon="github" >}}
{{< /cards >}}

9 changes: 6 additions & 3 deletions 0rtt.md → content/blog/0rtt.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# 0-RTT

*2024-08-14*
---
title: 0-RTT
date: 2024-08-14
aliases:
- /0rtt.html
---

Any given v2ray config does not just "have" 0-RTT or not have it.

Expand Down
11 changes: 11 additions & 0 deletions content/blog/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Blog
toc: true
---

<div style="text-align: center; margin-top: 1em;">
{{< hextra/hero-badge link="index.xml" >}}
<span>RSS Feed</span>
{{< icon name="rss" attributes="height=14" >}}
{{< /hextra/hero-badge >}}
</div>
9 changes: 6 additions & 3 deletions panels.md → content/blog/panels.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Issues with Xray Panels

*2024-07-30*
---
title: Issues with Xray Panels
date: 2024-07-30
aliases:
- /panels.html
---

I've been observing the Xray bugtracker for a while now, and I see some
recurring issues with users of popular Xray panels that are directly caused by
Expand Down
9 changes: 6 additions & 3 deletions transports.md → content/blog/transports.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Transports

*2024-08-01*
---
title: Transports
date: 2024-08-01
aliases:
- /transports.html
---

Translations: [Russian](https://marzban.dev/blog/about_transport/)

Expand Down
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/imfing/hextra-starter-template

go 1.21

require github.com/imfing/hextra v0.8.1 // indirect
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/imfing/hextra v0.8.1 h1:HPeuyBTxaG7o2PHT9XRgFTVbCVGhJbZ0t7PjApA32F8=
github.com/imfing/hextra v0.8.1/go.mod h1:cEfel3lU/bSx7lTE/+uuR4GJaphyOyiwNR3PTqFTXpI=
59 changes: 59 additions & 0 deletions hugo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Hugo configuration file
title: mmmray documents

# import hextra as module
module:
imports:
- path: github.com/imfing/hextra

outputs:
home:
- html
- rss
section:
- html
- rss
taxonomy:
- html
term:
- html

markup:
# allow raw html
goldmark:
renderer:
unsafe: true

# enable hextra syntax highlight
highlight:
noClasses: false

menu:
main:
- name: Blog
pageRef: /blog
weight: 1
params:
type: blog
- name: GitHub
weight: 3
url: "https://github.com/mmmray"
params:
icon: github

params:
navbar:
displayTitle: true
displayLogo: false

footer:
enable: true
displayCopyright: true
displayPoweredBy: true
width: normal

displayUpdatedDate: true

editURL:
enable: true
base: "https://github.com/mmmray/wall-documents/edit/main/content"
1 change: 1 addition & 0 deletions i18n/en.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
copyright: "© 2024 mmmray"
35 changes: 0 additions & 35 deletions mermaid-init.js

This file was deleted.

1,648 changes: 0 additions & 1,648 deletions mermaid.min.js

This file was deleted.

0 comments on commit 0aa900d

Please sign in to comment.