Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions plugins/contribute/Contribute Settings.tid
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ Repository:
~GitHub access token:
<$password name="github-docs-pr"/>

{{$:/plugins/sq/contribute/tour/config/access-token-link}}

~GitHub username (only needed for signing the CLA):
<$edit-text tiddler="$:/temp/contribute/gitusername" class="tc-edit-texteditor" tag="input"/>
3 changes: 3 additions & 0 deletions plugins/contribute/tour/config/access-token-link.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: $:/plugins/sq/contribute/tour/config/access-token-link

[[Create an access token|https://github.com/settings/tokens/new?scopes=public_repo]]

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
hint: where is the submission form button?
hint: Show the submission button
selector: .submit-docs-banner a
tags: $:/tags/TourStep
title: $:/plugins/sq/contribute/tour/steps/contribute-button

! Edit and create tiddlers to update the documentation
!! Edit and create tiddlers to update the documentation

Once you are ready to submit your work, open the submission form using the button in the bottom right corner.

In this form you can review which tiddlers will be submitted, and provide a short description of your changes.

<<tour-close>>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ condition: [password-exists[github-docs-pr]match[no]]

The link below will open the ~GitHub page for creating an access token with the minimum required permissions already selected. Add a note to remind yourself what the access token is for, and create the token and copy it.

[[Create an access token|https://github.com/settings/tokens/new?scopes=public_repo]]
{{$:/plugins/sq/contribute/tour/config/access-token-link}}

Please enter below the access token you have created:

Expand Down
9 changes: 9 additions & 0 deletions plugins/contribute/tour/steps/tracking.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
tags: $:/tags/TourStep
title: $:/plugins/sq/contribute/tour/steps/tracking
type: text/vnd.tiddlywiki

!! Edit and create tiddlers to update the documentation

This wiki will keep track of all tiddlers that you create or modify so that you can easily submit them once you have finished editing.

<<tour-buttons>>
1 change: 1 addition & 0 deletions plugins/tour/styles.tid
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ tags: $:/tags/Stylesheet
}

.tc-tour-panel-navigation .tc-btn-big-green {
border-radius: 0.25em;
margin: 0;
}

Expand Down
46 changes: 34 additions & 12 deletions plugins/tour/tour-panel.tid
Original file line number Diff line number Diff line change
@@ -1,24 +1,46 @@
title: $:/plugins/tiddlywiki/tour/panel
tags: $:/tags/PageTemplate

\procedure _tour-prevButton()
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TourStep]before{$:/state/tour/step}count[]compare:number:gt[0]]" variable="ignore">
<$button class="tc-btn-big-green" style="background-color: red;">
<$action-setfield $tiddler="$:/state/tour/step" $field="text" $value={{{ [all[shadows+tiddlers]tag[$:/tags/TourStep]allbefore{$:/state/tour/step}filter<filter-by-condition>last[]] :else[all[shadows+tiddlers]tag[$:/tags/TourStep]first[]] }}}/>
{{$:/plugins/tiddlywiki/tour/actions/initialise-current-tour-step}}
back
</$button>
</$list>
\end

\procedure _tour-nextButton()
<$button class="tc-btn-big-green" style="background-color: purple;">
<$action-setfield $tiddler="$:/state/tour/step" $field="text" $value={{{ [all[shadows+tiddlers]tag[$:/tags/TourStep]allafter{$:/state/tour/step}filter<filter-by-condition>first[]] :else[all[shadows+tiddlers]tag[$:/tags/TourStep]last[]] }}}/>
{{$:/plugins/tiddlywiki/tour/actions/initialise-current-tour-step}}
next
</$button>
\end

\procedure _tour-closeButton()
<$button class="tc-btn-big-green">
<$action-setfield $tiddler="$:/config/ShowTour" $field="text" $value="no"/>
Close Tour
</$button>
\end

\procedure tour-buttons()
\procedure tv-action-refresh-policy() always
<div class="tc-tour-panel-navigation">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TourStep]before{$:/state/tour/step}count[]compare:number:gt[0]]" variable="ignore">
<$button class="tc-btn-big-green" style="background-color: red;">
<$action-setfield $tiddler="$:/state/tour/step" $field="text" $value={{{ [all[shadows+tiddlers]tag[$:/tags/TourStep]allbefore{$:/state/tour/step}filter<filter-by-condition>last[]] :else[all[shadows+tiddlers]tag[$:/tags/TourStep]first[]] }}}/>
{{$:/plugins/tiddlywiki/tour/actions/initialise-current-tour-step}}
back
</$button>
</$list>
<$button class="tc-btn-big-green" style="background-color: purple;">
<$action-setfield $tiddler="$:/state/tour/step" $field="text" $value={{{ [all[shadows+tiddlers]tag[$:/tags/TourStep]allafter{$:/state/tour/step}filter<filter-by-condition>first[]] :else[all[shadows+tiddlers]tag[$:/tags/TourStep]last[]] }}}/>
{{$:/plugins/tiddlywiki/tour/actions/initialise-current-tour-step}}
next
</$button>
<<_tour-prevButton>> <<_tour-nextButton>>
</div>
\end

\procedure tour-close()
\procedure tv-action-refresh-policy() always
<div class="tc-tour-panel-navigation">
<<_tour-prevButton>> <<_tour-closeButton>>
<div class="tc-tour-panel-navigation">
\end


\procedure filter-by-condition()
[<currentTiddler>has[condition]subfilter{!!condition}limit[1]] :else[<currentTiddler>!has[condition]then[true]]
\end
Expand Down
2 changes: 1 addition & 1 deletion tiddlywiki.info
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"description": "Empty edition",
"description": "TW Contribute",
"plugins": [
"tiddlywiki/tiddlyweb",
"tiddlywiki/filesystem"
Expand Down