Skip to content

Commit e6f9e15

Browse files
committed
fixed docs home page scaling and more details about channel id
1 parent 9c89fd5 commit e6f9e15

7 files changed

Lines changed: 39 additions & 24 deletions

File tree

docs/website/src/assets/css/quick-styles.css

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@
2626
.flex {
2727
display: flex;
2828
}
29-
.block{
29+
30+
.block {
3031
display: block;
3132
}
33+
3234
.flex-wrap {
3335
flex-wrap: wrap;
3436
}
@@ -116,9 +118,11 @@
116118
.width100per {
117119
width: 100%;
118120
}
119-
.width-max-con{
120-
max-width: max-content;
121+
122+
.width-max-con {
123+
max-width: max-content;
121124
}
125+
122126
.no-text-select {
123127
user-select: none;
124128
}
@@ -136,28 +140,41 @@
136140
}
137141

138142

139-
span.code{
143+
span.code {
140144
font-style: italic;
141145
background-color: #333333;
142146
padding: 2px 5px;
143147
line-height: 1.5;
144148
border-radius: 3px;
149+
white-space: normal;
150+
word-break: break-word;
145151
}
146-
span.code.green{
147-
color: #71f171;;
152+
153+
span.code.green {
154+
color: #71f171;
155+
;
148156
}
149-
span.code.yellow{
157+
158+
span.code.yellow {
150159
color: #dfdf1a;
151160
}
161+
span.code.yellow-shade {
162+
color: rgb(251, 225, 172);
163+
}
152164

153-
.opacity-0{
165+
span.code.green-shade {
166+
color: #71f171;
167+
}
168+
.opacity-0 {
154169
opacity: 0;
155170
}
156-
.screen-height200px{
171+
172+
.screen-height200px {
157173
height: 300px;
158174
}
159175

160-
.new-line-active{
176+
.new-line-active {
161177
white-space: pre-line;
162178
}
163-
.align-self-end{}
179+
180+
.align-self-end {}

docs/website/src/assets/css/versionspage.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@
4444
color: #dfdf1a;
4545
}
4646

47-
.versions-page .yellow-shade {
48-
color: rgb(251, 225, 172);
49-
}
47+
5048

5149
.versions-page .bad {
5250
color: rgb(254, 91, 91);

docs/website/src/pages/ComponentsPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export default function ComponentsPage({ version }: { version: Iversion }) {
9393
{data?.how_to_add_both_imgs || <></>}
9494
{/* {data?.how_to_add_both_imgs} */}
9595
{/* <p className="paragraph">For Both Images pass in <span className="code">NotificationStyles.BOTH_IMGS</span> as argument to <span className="code">style</span> and provide both paths</p> */}
96-
<h3 className='app-icon-h3 sub-header'>Changing Default Notification Icon</h3>
96+
<h3 className='app-icon-h3 sub-header'>Changing Default Notification Icon [Android 6+]</h3>
9797
{isLegacyVersion(version) ?
9898
<p className='paragraph'>When you initialize Notification instance you can pass in file path to <span className="code">app_icon</span> </p>
9999
: <p className='paragraph'>Use <span className="code">.setSmallIcon(path)</span> to set custom notification icon</p>

docs/website/src/pages/HomePage.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ export default function HomePage() {
1717

1818
<p className="paragraph">- Freeing up __init__ kwargs, Created some new methods:</p>
1919
<ul className='inner-section-2 paragraph'>
20-
<li><span className="code">setSmallIcon</span> == <span className="code yellow-shade">Notification(...,app_icon="...") </span></li>
21-
<li><span className="code">setLargeIcon</span> == <span className="code yellow-shade">Notification(...,large_icon_path="...",style=NotificationStyles.LARGE_ICON)</span></li>
22-
<li><span className="code">setBigPicture</span> == <span className="code yellow-shade">Notification(...,body="...",style=NotificationStyles.BIG_PICTURE)</span></li>
23-
<li><span className="code">setBigText</span> == <span className="code yellow-shade">Notification(...,big_picture_path="...",style=NotificationStyles.BIG_TEXT)</span></li>
20+
<li><span className="code green-shade">setSmallIcon</span> == <span className="code yellow-shade">Notification(...,app_icon="...") </span></li>
21+
<li><span className="code green-shade">setLargeIcon</span> == <span className="code yellow-shade">Notification(...,large_icon_path="...",style=NotificationStyles.LARGE_ICON)</span></li>
22+
<li><span className="code green-shade">setBigPicture</span> == <span className="code yellow-shade">Notification(...,body="...",style=NotificationStyles.BIG_PICTURE)</span></li>
23+
<li><span className="code green-shade">setBigText</span> == <span className="code yellow-shade">Notification(...,big_picture_path="...",style=NotificationStyles.BIG_TEXT)</span></li>
2424
</ul>
2525
<h3 className='paragraph'>New Features</h3>
2626
<span className='code width100per flex paragraph'></span>

docs/website/src/pages/ReferencePage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ export default function ReferencePage({ version }: { version:Iversion}) {
6060
<p className='paragraph'>Add methods working to free up __init__ kwargs [parsing out `style` attribute] </p>
6161
<div className='paragraph'>
6262
<span className="cod paragraph">setSmallIcon</span> == <span className="code yellow-shade">Notification(..., app_icon="...") </span><br/><br/>
63-
<span className="cod">setLargeIcon</span> == <span className="code yellow-shade">Notification(..., large_icon_path="...", style=NotificationStyles.LARGE_ICON)</span><br/><br/>
64-
<span className="cod">setBigPicture</span> == <span className="code yellow-shade">Notification(..., big_picture_path="...",style=NotificationStyles.BIG_PICTURE)</span><br/><br/>
65-
<span className="cod">setBigText</span> == <span className="code yellow-shade">Notification(..., body="...", style=NotificationStyles.BIG_TEXT)</span><br/>
63+
<span>setLargeIcon</span> == <span className="code yellow-shade">Notification(..., large_icon_path="...", style=NotificationStyles.LARGE_ICON)</span><br/><br/>
64+
<span>setBigPicture</span> == <span className="code yellow-shade">Notification(..., big_picture_path="...",style=NotificationStyles.BIG_PICTURE)</span><br/><br/>
65+
<span>setBigText</span> == <span className="code yellow-shade">Notification(..., body="...", style=NotificationStyles.BIG_TEXT)</span><br/>
6666
</div>
6767
</section>}
6868
{/* Instance Methods Section */}

docs/website/src/pages/versions-data/1.58.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ const NOTIFICATION_METHODS = [
188188
{ name: 'body', desc: "Detailed text (for `BIG_TEXT` style)." },
189189
{ name: 'callback', desc: "Function executed on notification tap." },
190190
{ name: 'channel_name', desc: "Human-readable channel name." },
191-
{ name: 'channel_id', desc: "Channel id (sanitized from name if not provided)." },
191+
{ name: 'channel_id', desc: "Used to later reference Channel when sending each notification (extracted from channel name if provided or defaults to 'default_channel')." },
192192
{ name: 'app_icon', desc: 'If not specified, defaults to the app icon. To change it, use a PNG—otherwise it will render as a black box.' },
193193
{ name: 'logs', desc: 'Enable debug logs when not on Android.' },
194194

docs/website/src/pages/versions-data/1.59.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ const NOTIFICATION_METHODS = [
196196
{ name: 'body -- use setBigText() instead', desc: "Detailed text (for `BIG_TEXT` style)." },
197197
{ name: 'callback', desc: "Function executed on notification tap." },
198198
{ name: 'channel_name', desc: "Human-readable channel name." },
199-
{ name: 'channel_id', desc: "Channel id (sanitized from name if not provided)." },
199+
{ name: 'channel_id', desc: "Used to later reference Channel when sending each notification (extracted from channel name if provided or defaults to 'default_channel')." },
200200
{ name: 'app_icon', desc: 'If not specified, defaults to the app icon. To change it, use a PNG—otherwise it will render as a black box.' },
201201
{ name: 'logs', desc: 'Enable debug logs when not on Android.' },
202202

0 commit comments

Comments
 (0)