Skip to content

Commit

Permalink
docs progress part 4
Browse files Browse the repository at this point in the history
- add favicon
- add title to source code and theme icon
- add publish shell script
  • Loading branch information
jeevatkm committed Dec 29, 2024
1 parent 0efd03e commit d337cc0
Show file tree
Hide file tree
Showing 16 changed files with 67 additions and 3 deletions.
2 changes: 1 addition & 1 deletion content/docs/upgrading-to-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ I made necessary breaking changes to improve Resty and open up future growth pos

* All the Resty errors start with `resty: ...` prefix and sub feature errors contain feature name in them, e.g., `resty: digest: ...`

### Behavior
#### Behavior

* Set Content length is not applicable for `io.Reader` flow.
* By default, payload is not supported in HTTP verb DELETE. Use [Client.AllowMethodDeletePayload]({{% param Resty.V3.GoDocLinkPrefix %}}Client.AllowMethodDeletePayload) or [Request.AllowMethodDeletePayload]({{% param Resty.V3.GoDocLinkPrefix %}}Request.AllowMethodDeletePayload).
Expand Down
3 changes: 3 additions & 0 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ markup:
tableOfContents:
startLevel: 1
endLevel: 4
# ordered: false
highlight:
style: base16-snazzy

cleanDestinationDir: true

# menu:
# before:
# - name: Home
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/docs/inject/menu-after.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div class="r-footer">
<div class="r-info-box">
<a href="https://github.com/go-resty/resty" rel="external" target="_blank">
<a href="https://github.com/go-resty/resty" rel="external" target="_blank" title="Resty Source Code">
<img src="/svg/github.svg" alt="Resty Source Code" class="book-icon r-icon" />
</a>
<a id="colorSchemeToggle" onclick="toggleDarkMode()">
<a id="colorSchemeToggle" onclick="toggleDarkMode()" title="Light or Dark">
<img id="darkModeIcon" src="/svg/color-scheme.svg" class="book-icon r-icon" />
</a>
</div>
Expand Down
21 changes: 21 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

# Versions
# 1.0.0 Initial script

echo 'Starting resty docs publish process ...'

echo 'Cleanup ...'
yes | rm -rf public/
yes | rm -rf resources/_gen/

echo 'Run hugo publish ...'
hugo --gc --minify

echo 'Copy required files into public/'
cp -rp resty/public/ public/

echo 'Delete .DS_Store files ...'
find public/ -type f -name '.DS_Store' -delete

echo 'Publish process completed.'
Binary file added resty/favicon/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resty/favicon/favicon-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resty/favicon/favicon.ico
Binary file not shown.
Binary file added resty/favicon/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions resty/favicon/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions resty/favicon/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "MyWebSite",
"short_name": "MySite",
"icons": [
{
"src": "/web-app-manifest-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/web-app-manifest-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
Binary file added resty/favicon/web-app-manifest-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resty/favicon/web-app-manifest-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions resty/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /
11 changes: 11 additions & 0 deletions resty/public/v3/go-get.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta name="go-import" content="resty.dev/v3 git https://github.com/go-resty/resty" />
<meta name="go-source" content="resty.dev/v3 https://github.com/go-resty/resty/tree/v3 https://github.com/go-resty/resty/tree/v3{/dir} https://github.com/go-resty/resty/blob/v3{/dir}/{file}#L{line}" />
<meta http-equiv="refresh" content="0; url=https://pkg.go.dev/resty.dev/v3" />
</head>
<body>
Nothing to see here. Redirecting to <a href="https://pkg.go.dev/resty.dev/v3">godoc</a>...
</body>
</html>
Binary file added static/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d337cc0

Please sign in to comment.