From cb234542f7d9f312f793d9f6032083d7301d9de9 Mon Sep 17 00:00:00 2001
From: Ailin Nemui
Date: Wed, 24 May 2017 15:23:58 +0200
Subject: - replace "whatsnew" with yaml - replace settings nav with php - add
404
---
_includes/head.html | 1 -
_includes/sb_sidebar_settings.html | 474 +++++++------------------------------
_includes/sb_whatsnew.html | 23 +-
3 files changed, 100 insertions(+), 398 deletions(-)
(limited to '_includes')
diff --git a/_includes/head.html b/_includes/head.html
index 72c308f..2ec44bf 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -4,7 +4,6 @@
{% if page.title %}{% unless page.title contains 'Irssi' %}Irssi - {% endunless %}{{ page.title }}{% else %}{{ site.title }}{% endif %}
-
diff --git a/_includes/sb_sidebar_settings.html b/_includes/sb_sidebar_settings.html
index dd3ec52..5f04c92 100644
--- a/_includes/sb_sidebar_settings.html
+++ b/_includes/sb_sidebar_settings.html
@@ -1,399 +1,87 @@
Quick Nav
-
-
- activity_hide_level
- activity_hide_targets
- activity_hilight_level
- activity_msg_level
- actlist_names
- actlist_sort
- alternate_nick
- auto_whowas
- autoclose_query
- autoclose_windows
- autocreate_own_query
- autocreate_query_level
- autocreate_split_windows
- autocreate_windows
- autofocus_new_items
- autoignore_level
- autoignore_time
- autolog
- autolog_colors
- autolog_ignore_targets
- autolog_level
- autolog_path
- autostick_split_windows
- awaylog_colors
- awaylog_file
- awaylog_level
- ban_type
- beep_msg_level
- beep_when_away
- beep_when_window_active
- bell_beeps
- chanmode_expando_strip
- channel_max_who_sync
- channel_sync
- channels_rejoin_unavailable
- cmd_queue_speed
- cmdchars
- cmds_max_at_once
- colors
- completion_auto
- completion_char
- completion_keep_privates
- completion_keep_publics
- completion_nicks_lowercase
- completion_strict
- ctcp_userinfo_reply
- ctcp_version_reply
- dcc_autoaccept_lowports
- dcc_autochat_masks
- dcc_autoget
- dcc_autoget_masks
- dcc_autoget_max_size
- dcc_autorename
- dcc_autoresume
- dcc_download_path
- dcc_file_create_mode
- dcc_mirc_ctcp
- dcc_own_ip
- dcc_port
- dcc_send_replace_space_with_underscore
- dcc_timeout
- dcc_upload_path
- emphasis
- emphasis_italics
- emphasis_multiword
- emphasis_replace
- expand_escapes
- flood_max_msgs
- flood_timecheck
- group_multi_mode
- help_path
- hide_colors
- hide_netsplit_quits
- hide_server_tags
- hide_text_style
- hilight_act_color
- hilight_color
- hilight_level
- hilight_nick_matches
- hilight_nick_matches_everywhere
- hostname
- ignore_signals
- indent
- indent_always
- join_auto_chans_on_invite
- kick_first_on_kickban
- knockout_time
- lag_check_time
- lag_max_before_disconnect
- lag_min_show
- log_close_string
- log_create_mode
- log_day_changed
- log_open_string
- log_theme
- log_timestamp
- massjoin_max_joins
- massjoin_max_wait
- max_command_history
- max_ctcp_queue
- max_wildcard_modes
- mirc_blink_fix
- names_max_columns
- names_max_width
- netjoin_max_nicks
- netsplit_max_nicks
- netsplit_nicks_hide_threshold
- nick
- notify_check_time
- notify_whois_time
- opermode
- override_coredump_limit
- part_message
- paste_detect_time
- paste_join_multiline
- paste_use_bracketed_mode
- paste_verify_line_count
- perl_use_lib
- print_active_channel
- proxy_address
- proxy_password
- proxy_port
- proxy_string
- proxy_string_after
- query_track_nick_changes
- quit_message
- rawlog_lines
- real_name
- recode
- recode_autodetect_utf8
- recode_fallback
- recode_out_default_charset
- recode_transliterate
- resolve_prefer_ipv6
- resolve_reverse_lookup
- reuse_unused_windows
- scroll
- scroll_page_count
- scrollback_burst_remove
- scrollback_lines
- scrollback_time
- server_connect_timeout
- server_reconnect_time
- settings_autosave
- show_away_once
- show_names_on_join
- show_nickmode
- show_nickmode_empty
- show_own_nickchange_once
- show_quit_once
- skip_motd
- split_line_end
- split_line_on_space
- split_line_start
- STATUS_OPER
- term_appkey_mode
- term_charset
- term_force_colors
- theme
- timestamp_format
- timestamp_level
- timestamp_timeout
- timestamps
- use_msgs_window
- use_proxy
- use_status_window
- user_name
- usermode
- wall_format
- whois_hide_safe_channel_id
- window_auto_change
- window_check_level_first
- window_default_level
- window_history
- windows_auto_renumber
- write_buffer_size
- write_buffer_timeout
-
-
-
-
-
- completion_auto
- completion_char
- completion_keep_privates
- completion_keep_publics
- completion_nicks_lowercase
- completion_strict
-
-
- dcc_autoaccept_lowports
- dcc_autochat_masks
- dcc_autoget
- dcc_autoget_masks
- dcc_autoget_max_size
- dcc_autorename
- dcc_autoresume
- dcc_download_path
- dcc_file_create_mode
- dcc_mirc_ctcp
- dcc_own_ip
- dcc_port
- dcc_send_replace_space_with_underscore
- dcc_timeout
- dcc_upload_path
-
-
- autoignore_level
- autoignore_time
- cmd_queue_speed
- cmds_max_at_once
- flood_max_msgs
- flood_timecheck
- max_ctcp_queue
-
-
- max_command_history
- rawlog_lines
- scroll_page_count
- scrollback_burst_remove
- scrollback_lines
- scrollback_time
- window_history
-
-
- autolog
- autolog_colors
- autolog_ignore_targets
- autolog_level
- autolog_path
- awaylog_colors
- awaylog_file
- awaylog_level
- log_close_string
- log_create_mode
- log_day_changed
- log_open_string
- log_theme
- log_timestamp
-
-
- active_window_ignore_refnum
- activity_hide_level
- activity_hide_targets
- activity_hilight_level
- activity_msg_level
- actlist_names
- actlist_sort
- autoclose_query
- autoclose_windows
- autocreate_own_query
- autocreate_query_level
- autocreate_split_windows
- autocreate_windows
- autofocus_new_items
- autostick_split_windows
- beep_msg_level
- beep_when_away
- beep_when_window_active
- bell_beeps
- chanmode_expando_strip
- colors
- emphasis
- emphasis_italics
- emphasis_multiword
- emphasis_replace
- expand_escapes
- hide_colors
- hide_server_tags
- hide_text_style
- hilight_act_color
- hilight_color
- hilight_level
- hilight_nick_matches
- hilight_nick_matches_everywhere
- indent
- indent_always
- mirc_blink_fix
- names_max_columns
- names_max_width
- print_active_channel
- query_track_nick_changes
- reuse_unused_windows
- scroll
- show_away_once
- show_names_on_join
- show_nickmode
- show_nickmode_empty
- show_own_nickchange_once
- show_quit_once
- term_appkey_mode
- term_charset
- term_force_colors
- theme
- timestamp_format
- timestamp_level
- timestamp_timeout
- timestamps
- use_msgs_window
- use_status_window
- whois_hide_safe_channel_id
- window_auto_change
- window_check_level_first
- window_default_level
- windows_auto_renumber
-
-
- auto_whowas
- ban_type
- channel_max_who_sync
- channel_sync
- cmdchars
- ctcp_userinfo_reply
- ctcp_version_reply
- group_multi_mode
- help_path
- hide_netsplit_quits
- ignore_signals
- join_auto_chans_on_invite
- kick_first_on_kickban
- knockout_time
- lag_check_time
- lag_max_before_disconnect
- lag_min_show
- massjoin_max_joins
- massjoin_max_wait
- max_wildcard_modes
- netjoin_max_nicks
- netsplit_max_nicks
- netsplit_nicks_hide_threshold
- notify_check_time
- notify_whois_time
- opermode
- override_coredump_limit
- part_message
- paste_detect_time
- paste_join_multiline
- paste_use_bracketed_mode
- paste_verify_line_count
- quit_message
- recode
- recode_autodetect_utf8
- recode_fallback
- recode_out_default_charset
- recode_transliterate
- settings_autosave
- split_line_end
- split_line_on_space
- split_line_start
- STATUS_OPER
- usermode
- wall_format
- write_buffer_size
- write_buffer_timeout
-
-
- perl_use_lib
-
-
- proxy_address
- proxy_password
- proxy_port
- proxy_string
- proxy_string_after
- use_proxy
-
-
- alternate_nick
- hostname
- nick
- real_name
- resolve_prefer_ipv6
- resolve_reverse_lookup
- server_connect_timeout
- server_reconnect_time
- skip_motd
- user_name
-
-
- channels_rejoin_unavailable
-
-
+{% assign temp = page.content | split: "
+"
+%}{% for line in temp
+%}{% assign header = line | normalize_whitespace | truncate: 4, ""
+%}{% if header == "## ["
+%}{% assign category = line | normalize_whitespace | replace: "## [" | replace: "]"
+%}{% assign all_categories = all_categories | append: " " | append: category
+%}{% endif
+%}{% endfor
+%}{% assign all_categories = all_categories | split: " " | sort | join: " " | prepend: "ALL " | split: " "
+%}{% for cat in all_categories
+%}
+
+ {%
+ capture cat_settings
+%}{% for line in temp
+%}{% assign header = line | normalize_whitespace | truncate: 4, ""
+%}{% if header == "## ["
+%}{% assign category = line | normalize_whitespace | replace: "## [" | replace: "]"
+%}{% endif
+%}{% if category == cat or cat == "ALL"
+%}{% assign is_anchor = line | normalize_whitespace | truncate: 3, ""
+%}{% assign is_setting = line | normalize_whitespace | truncate: 2, ""
+%}{% if is_anchor == "{:#"
+%}{% assign anchor = line | normalize_whitespace | replace: "{:#" | replace: "}"
+%}{% elsif is_setting == "` "
+%}{% assign setting0 = line | split: " "
+%}{% assign setting = setting0[1]
+%}{% if setting == anchor %}{{ setting | downcase }}#{{ setting }}
+{% else %}#error#{{ setting }}{%
+ endif
+%}{% else
+%}{% assign anchor =
+%}{% assign setting =
+%}{% endif
+%}{% endif
+%}{% endfor
+%}{% endcapture
+%}{% assign cat_settings = cat_settings | normalize_whitespace | split: " " | sort
+%}{% for sort_setting in cat_settings
+%}{% assign sort_setting0 = sort_setting | split: "#"
+%}{% assign setting = sort_setting0[1] %}
+ {{ setting }} {%
+ endfor
+%}
+ {% if cat == "ALL" %}
{% endif %}
+{% endfor
+%}
{% comment %}
+
+
+
+
+
+
+
+{% endcomment %}
Appendices
- A: Levels
-
- B: Special Variables and Expandos
-
- C: Time Formats
-
- D: Color Codes
-
- E: Credits and copyright
+{% comment %}
+
+
+
+
+
+
+
+{% endcomment
+%}{% assign is_next = 0
+%}{% assign app_title =
+%}{% for line in temp
+%}{% assign is_app = line | normalize_whitespace | truncate: 12, ""
+%}{% assign is_anchor = line | normalize_whitespace | truncate: 3, ""
+%}{% if is_app == "## Appendix "
+%}{% assign app_title = line | normalize_whitespace | replace: "## Appendix "
+%}{% elsif is_anchor == "{:#" and app_title
+%}{% assign anchor = line | normalize_whitespace | replace: "{:#" | replace: "}"
+%}{% if is_next == 1 %} {% else %}{% assign is_next = 1 %}{% endif %}
+ {{ app_title }}
+{% else
+%}{% assign app_title =
+%}{% assign anchor =
+%}{% endif
+%}{% endfor %}
diff --git a/_includes/sb_whatsnew.html b/_includes/sb_whatsnew.html
index b09ad75..ea74fc5 100644
--- a/_includes/sb_whatsnew.html
+++ b/_includes/sb_whatsnew.html
@@ -1,4 +1,19 @@
-2017-05-12 Introduction to fuzzing Irssi
-2017-05-06 Test horizontal/vertical splits
-2017-03-12 Poll Non-UTF-8 discontinuation
-2017-03-11 Security Irssi 1.0.2 released!
+{% comment %}
+
+Edit /_data/sb_whatsnew.yml to generate the content of this sidebar
+
+{% endcomment
+%}{% for new in site.data.sb_whatsnew
+%}{% assign found = 0
+%}{% for post in site.posts
+%}{% if post.slug == new.key
+%}
+{{ post.date | date: "%Y-%m-%d" }} {% if new.tag %}{{ new.tag }} {% endif %}{% if new.title %}{{ new.title }}{% else %}{{ post.title }}{% endif %}
{% assign found = 1 %}{% break
+%}{% endif
+%}{% endfor
+%}{% if found == 0
+%}
+#error# {{ new.key }} not found
{%
+ endif
+%}{% endfor
+%}
--
cgit v1.2.3