Compare commits

..

4 Commits

Author SHA1 Message Date
Toshaan Bharvani ba115c4276 update hugo build options
Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
3 weeks ago
Toshaan Bharvani e18cba82dd add new feedback process and form
Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
3 weeks ago
Toshaan Bharvani 0bfb82d5dd change variable name to avoid conflict
Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
3 weeks ago
Toshaan Bharvani 3f0d285bc1 add feedback form to requesttracker
Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
3 weeks ago

@ -1,6 +1,8 @@
#!Makefile #!Makefile


HUGO=hugo-extended HUGO=hugo-extended
HUGO_NUMWORKERMULTIPLIER=64
HUGO_MEMORYLIMIT=32
BUILDNAME:=$(shell git rev-parse --abbrev-ref HEAD) BUILDNAME:=$(shell git rev-parse --abbrev-ref HEAD)
BASEURL:=$(shell basename `pwd` | sed 's/_/./g') BASEURL:=$(shell basename `pwd` | sed 's/_/./g')
BRANCHES:=$(shell git branch -r | sed 's/origin\///g' | sed 's/pr\//pr-/' | sed '/HEAD/d' | sed '/master/d' | sed '/main/d') BRANCHES:=$(shell git branch -r | sed 's/origin\///g' | sed 's/pr\//pr-/' | sed '/HEAD/d' | sed '/master/d' | sed '/main/d')
@ -28,7 +30,7 @@ build-staging:


.PHONY: test .PHONY: test
test: clean test: clean
$(HUGO) --environment=development --minify --templateMetrics --templateMetricsHints --memstats hug_mem_log HUGO_NUMWORKERMULTIPLIER=$(HUGO_NUMWORKERMULTIPLIER) HUGO_MEMORYLIMIT=$(HUGO_MEMORYLIMIT) $(HUGO) --environment=development --minify --printMemoryUsage --printPathWarnings --printUnusedTemplates --templateMetrics --templateMetricsHints


.PHONY: draft .PHONY: draft
draft: draft:

@ -22,6 +22,14 @@ enableEmoji = true
noJSConfigInAssets = false noJSConfigInAssets = false
# useResourceCacheWhen = 'always' # useResourceCacheWhen = 'always'
writeStats = true writeStats = true
[build.buildStats]
enable = true
disableClasses = false
disableIDs = false
disableTags = false
[[build.cacheBusters]]
source = '(postcss|tailwind)\.config\.js'
target = '(css|styles|scss|sass)'


[outputs] [outputs]
home = [ "HTML" , "RSS" ] home = [ "HTML" , "RSS" ]
@ -141,20 +149,20 @@ enableEmoji = true
[caches] [caches]
[caches.assets] [caches.assets]
dir = ':resourceDir/_gen' dir = ':resourceDir/_gen'
maxAge = "5m" maxAge = -1
[caches.getcsv] [caches.getcsv]
dir = ':cacheDir/:project' dir = ':cacheDir/:project'
maxAge = "5m" maxAge = -1
[caches.getjson] [caches.getjson]
dir = ':cacheDir/:project' dir = ':cacheDir/:project'
maxAge = "5m" maxAge = -1
ttl = 300 ttl = 300
[caches.getresource] [caches.getresource]
dir = ':cacheDir/:project' dir = ':cacheDir/:project'
maxAge = "5m" maxAge = -1
[caches.images] [caches.images]
dir = ':resourceDir/_gen' dir = ':resourceDir/_gen'
maxAge ="5m" maxAge = -1
[caches.modules] [caches.modules]
dir = ':cacheDir/modules' dir = ':cacheDir/modules'
maxAge = "5m" maxAge = -1

@ -2,7 +2,7 @@
title: "Instruction Set Architecture" title: "Instruction Set Architecture"
group: isa group: isa
publicreview: false publicreview: false
feedback: feedbackprocess:
- title: Request For Change Feedback for "non ISA TWG members" - title: Request For Change Feedback for "non ISA TWG members"
description: "This feedback process uses the RFC method, which we divide in 3 types : _minor changes_, _formal proposal_, or _RFC_." description: "This feedback process uses the RFC method, which we divide in 3 types : _minor changes_, _formal proposal_, or _RFC_."
url: /isarfc/ url: /isarfc/

@ -0,0 +1,55 @@
<script>
var formname = "form.contactForm";
var submiturl = "{{ .Site.Params.forms.contact.URI }}";
{{ if .Site.Params.forms.contact.goal }}
var goal = "{{ .Site.Params.forms.contact.goal }}";
{{ end }}
{{ $feedbackqueue := .Param "feedback.queue" }}
</script>
<section id="contact">
<div class="container"><div class="row wow fadeInUp">
<div class="col-lg-12 col-md-12"><div class="form">
<div id="sendmessage">Your message has been sent. Thank you!</div>
<div id="errormessage">Error</div>
<form role="form" name="contactForm" class="contactForm" id="contactForm" action="" method="post">
<div class="form-row">
<div class="form-group col-lg-12">
<input type="text" name="name" class="form-control" id="name" placeholder="Your Name" data-rule="minlen:4" data-msg="Please enter at least 4 characters" />
<div class="validation"></div>
</div>
</div>
<div class="form-row">
<div class="form-group col-lg-12">
<input type="email" class="form-control" name="email" id="email" placeholder="Your Email" data-rule="email" data-msg="Please enter a valid email address" />
<div class="validation"></div>
</div>
</div>
<div class="form-row">
<div class="form-group col-lg-12">
<input type="text" class="form-control" name="subject" id="subject" placeholder="Subject" data-rule="minlen:4" data-msg="Please enter at least 8 characters" />
<div class="validation"></div>
</div>
</div>
<div class="form-row">
<div class="form-group col-lg-12">
<textarea class="form-control" name="message" rows="5" data-rule="required" data-msg="Please write something for us" placeholder="Message"></textarea>
<div class="validation"></div>
</div>
</div>
<div class="form-row">
<div class="form-group col-lg-12">
By submitting this form, I acknowledge that my information is subject
to the <a href="{{ "/policy/privacy" | relURL }}">OpenPOWER Foundation's Privacy Policy</a>.
</div>
</div>
<div class="form-row">
<div class="form-group col-lg-12 text-center">
<input type="hidden" name="contact" value="{{ $feedbackqueue }}" />
<input type="hidden" name="url" value="{{ $.Page.RelPermalink | absURL }}" />
<button class="btn btn-outline-primary mb-4 mt-4" type="submit" title="Send Message">Send Message</button>
</div>
</div>
</form>
</div></div>
</div></div>
</section>

@ -38,14 +38,17 @@
<div class="col-lg-3"></div> <div class="col-lg-3"></div>
<div class="col-lg-6 content"> <div class="col-lg-6 content">
<div><p>{{ .Content }}</p></div> <div><p>{{ .Content }}</p></div>
{{ if .Param "feedback"}} {{ if .Param "feedbackprocess"}}
{{ range $feedback := (.Param "feedback") }} {{ range $feedbackprocess := (.Param "feedbackprocess") }}
<a href="{{ $feedback.url }}"><div class="feedback btn btn-outline-primary"> <a href="{{ $feedbackprocess.url }}"><div class="feedback btn btn-outline-primary">
<h3>{{ $feedback.title }}</h3> <h3>{{ $feedbackprocess.title }}</h3>
{{ $feedback.description | markdownify }} {{ $feedbackprocess.description | markdownify }}
</div></a><br><br> </div></a><br><br>
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ if .Param "feedback" }}
{{ partial "feedbackform.html" . }}
{{ end }}
</div> </div>
<div class="col-lg-3"> <div class="col-lg-3">
{{ if .Param "group" }} {{ if .Param "group" }}

Loading…
Cancel
Save