1
00:00:05,120 --> 00:00:13,080
I live inside my own world of 
make believe kids screaming in 

2
00:00:13,160 --> 00:00:20,800
the Cradle's profanities. 
I see that the ice covered in 

3
00:00:20,800 --> 00:00:26,880
ink and Glitch cross are the 
ones who hurt my cries and 

4
00:00:26,880 --> 00:00:32,040
watched me weep. 
This episode is not sponsored by

5
00:00:32,040 --> 00:00:35,240
anyway, it's just Chris and I. 
So it's it's pretty fun today. 

6
00:00:36,120 --> 00:00:39,480
I have Chris here. 
I I believe, can I say core 

7
00:00:39,480 --> 00:00:42,400
maintainer of Astro. 
That's awesome. 

8
00:00:42,800 --> 00:00:46,840
And also lead of Starlight. 
So I just took down our banner. 

9
00:00:46,840 --> 00:00:50,080
Let's put that back up building 
docks with Starlight and Astro. 

10
00:00:50,640 --> 00:00:52,240
Super stoked to talk about this 
one. 

11
00:00:52,720 --> 00:00:57,120
Seems like Starlight has really 
kind of taken a forefront for 

12
00:00:57,120 --> 00:01:00,440
Astro lately. 
I want to know more about you 

13
00:01:00,440 --> 00:01:02,040
and how you got involved with 
the team. 

14
00:01:02,040 --> 00:01:05,800
So let's start there, Chris. 
I just want to know like how did

15
00:01:05,800 --> 00:01:08,080
you begin with Astro and kind of
a little bit more about your 

16
00:01:08,080 --> 00:01:10,000
background? 
Yeah, Yeah. 

17
00:01:10,000 --> 00:01:11,120
Well, first, thanks for having 
me. 

18
00:01:12,960 --> 00:01:15,320
Yeah, I have a kind of, it's 
kind of like an accidental 

19
00:01:15,320 --> 00:01:18,760
background to some extent. 
I, I'm not from like a 

20
00:01:18,760 --> 00:01:21,560
traditional coding background or
anything, but I needed a website

21
00:01:21,880 --> 00:01:27,000
a couple years ago and had 
really liked like the component 

22
00:01:27,000 --> 00:01:30,440
based way of working, you know, 
that has become so common in the

23
00:01:30,760 --> 00:01:33,440
frameworks. 
And but I had already like built

24
00:01:33,440 --> 00:01:35,480
something and be like, wow, this
is, I'm just shipping so much 

25
00:01:35,480 --> 00:01:38,480
JavaScript to the browser just 
to like do this. 

26
00:01:38,480 --> 00:01:40,000
I don't really need that. 
Like, I don't know, I'm trying 

27
00:01:40,000 --> 00:01:44,320
to build A blog or whatever and 
found Astro and then like ended 

28
00:01:44,320 --> 00:01:46,760
up in the discord community. 
Ended up like helping out once 

29
00:01:46,760 --> 00:01:48,520
I'd like learned the ropes a 
little bit. 

30
00:01:49,200 --> 00:01:53,840
And yeah, thanks to their like 
welcoming and amazing community 

31
00:01:53,840 --> 00:01:58,280
there, I eventually ended up 
sometime later with work. 

32
00:01:59,360 --> 00:02:02,000
So I've been it's like a little 
over 18 months now that I've 

33
00:02:02,000 --> 00:02:06,480
been kind of working to some 
extent first on Astro first as 

34
00:02:06,480 --> 00:02:08,759
like a maintainer of the 
documentation website over 

35
00:02:08,759 --> 00:02:11,720
there. 
So like helping build out new 

36
00:02:11,720 --> 00:02:14,440
features for their we one of the
first big projects we had was 

37
00:02:14,440 --> 00:02:18,920
like building out a tutorial 
like with state trackers and 

38
00:02:18,920 --> 00:02:21,240
like, you know, progress 
trackers and like fun quizzes 

39
00:02:21,240 --> 00:02:23,520
and stuff like that. 
Was that was like part of my, my

40
00:02:23,520 --> 00:02:26,040
work. 
And then, yeah, more recently 

41
00:02:26,360 --> 00:02:28,720
transitioned into Starlight, 
which has kind of grown out of 

42
00:02:28,720 --> 00:02:31,240
that. 
Starlight, for the people who 

43
00:02:31,240 --> 00:02:33,920
don't know, is a documentation 
building tool. 

44
00:02:35,440 --> 00:02:40,480
So it helps you build a site for
your docs, but it's on top of 

45
00:02:40,480 --> 00:02:42,000
Astro. 
So it kind of like comes with a 

46
00:02:42,000 --> 00:02:46,040
lot of the good stuff that Astro
does and builds on a lot of the 

47
00:02:46,040 --> 00:02:48,720
stuff we've learned building 
those docs websites ourselves. 

48
00:02:48,720 --> 00:02:51,160
Like we were kind of like, hey, 
we've been, we're constantly 

49
00:02:51,160 --> 00:02:53,560
answering questions from people 
being saying, oh, how do I do 

50
00:02:53,560 --> 00:02:55,000
that thing, that cool thing in 
your docs? 

51
00:02:55,000 --> 00:02:57,040
I'm like, I want to do that too.
And like, can we grab that 

52
00:02:57,040 --> 00:02:58,960
component from your docs and be 
like, you know, a lot of the 

53
00:02:58,960 --> 00:03:01,680
time it's not so easy when 
something's just like built in 

54
00:03:01,680 --> 00:03:04,520
your site, like to just rip it 
out and plug it into your own. 

55
00:03:04,520 --> 00:03:06,600
Like you can try and like if you
know what you're doing, you can 

56
00:03:06,600 --> 00:03:08,600
do it. 
But like often it's quite 

57
00:03:08,600 --> 00:03:11,040
fiddly. 
So, yeah, we've Starlight is the

58
00:03:11,240 --> 00:03:13,840
kind of organic growth out of 
that to make sure we can share 

59
00:03:13,840 --> 00:03:16,520
as much of that with with 
others, yeah. 

60
00:03:16,840 --> 00:03:19,400
So Starlight was never like an 
intentional project. 

61
00:03:19,600 --> 00:03:23,760
It kind of became a project over
over months, year type thing. 

62
00:03:24,680 --> 00:03:26,800
It was intentional once I 
started it, but like, yeah, it 

63
00:03:26,800 --> 00:03:28,760
was kind of came out of very 
obvious need. 

64
00:03:28,760 --> 00:03:31,760
We had this really old docs 
template that you could use like

65
00:03:31,760 --> 00:03:36,360
a starter template, but it had 
like, I don't know, it like 

66
00:03:36,360 --> 00:03:39,600
diverged from, from our actual 
dock site by mile. 

67
00:03:39,600 --> 00:03:41,760
So people would take it being 
like, oh, cool, I get to do 

68
00:03:41,760 --> 00:03:43,120
stuff like Astro's dock site 
has. 

69
00:03:43,120 --> 00:03:45,840
And then it would miss this 
feature, miss that feature, some

70
00:03:45,840 --> 00:03:49,960
old design kind of thing. 
And so I knew that like we, we 

71
00:03:49,960 --> 00:03:52,400
had planned some redesign work 
on the dock site and I knew that

72
00:03:52,400 --> 00:03:54,760
if we're going to like invest in
doing that work, it would be 

73
00:03:54,760 --> 00:03:57,200
really cool to, to not end up in
the same position. 

74
00:03:57,200 --> 00:04:00,160
Or maybe we refresh the starter 
template and then diverge again.

75
00:04:01,520 --> 00:04:04,680
We'll maybe look, we'll look now
into what like in more detail of

76
00:04:04,680 --> 00:04:06,280
what Starlight is and how it 
works. 

77
00:04:06,280 --> 00:04:08,920
But that's no longer possible 
because of, because of how it's 

78
00:04:08,920 --> 00:04:10,280
built. 
You know, it's an MPN package 

79
00:04:10,280 --> 00:04:12,960
you can install and stuff. 
So any any upgrades we make 

80
00:04:12,960 --> 00:04:15,960
there make it make it down to 
all users, not just us. 

81
00:04:16,640 --> 00:04:19,920
Well, that makes sense. 
So kind of not the traditional 

82
00:04:19,920 --> 00:04:22,480
background still you're you're 
still a developer, but are you 

83
00:04:22,480 --> 00:04:25,160
like coding a lot these days or 
like what's? 

84
00:04:25,160 --> 00:04:27,920
Oh, these days, yeah. 
Like these days I'm front end of

85
00:04:27,920 --> 00:04:29,520
basic. 
I mean, when you're working with

86
00:04:29,520 --> 00:04:31,680
Astro, it's kind of, I guess 
it's to some extent full stack, 

87
00:04:31,680 --> 00:04:32,840
right? 
You're like involved with both 

88
00:04:32,880 --> 00:04:34,360
processes and things like things
like that. 

89
00:04:34,360 --> 00:04:38,840
But but like front end is kind 
of where I feel comfortable. 

90
00:04:40,360 --> 00:04:42,240
But yeah, I know my background 
is as a musician. 

91
00:04:42,240 --> 00:04:45,760
I like, I trained as a musician 
and then I'd always built like 

92
00:04:45,760 --> 00:04:48,080
websites on the side, you know, 
like musicians need websites. 

93
00:04:48,080 --> 00:04:49,720
So like, you'd be like, my 
friends would be like, oh, can 

94
00:04:49,720 --> 00:04:51,600
you build me this? 
And obviously I can't. 

95
00:04:51,640 --> 00:04:53,960
Tell you like how many people 
I've interviewed that are 

96
00:04:53,960 --> 00:04:58,720
musicians that built like a site
for musician, it's unbelievable 

97
00:04:58,720 --> 00:04:59,760
I. 
Don't know. 

98
00:04:59,760 --> 00:05:00,920
Yeah, it's a great training 
ground. 

99
00:05:00,960 --> 00:05:03,200
I guess I. 
Remember, I remember as like a 

100
00:05:03,200 --> 00:05:05,120
school kid, like, can you play 
the piano? 

101
00:05:05,120 --> 00:05:06,440
Do you know music? 
Do you like it? 

102
00:05:06,440 --> 00:05:09,080
And it was always like that 
engineering mindset apparently. 

103
00:05:09,080 --> 00:05:10,960
So it it fits really well 
apparently. 

104
00:05:13,040 --> 00:05:15,280
Yeah, I do. 
I've heard that a lot. 

105
00:05:15,680 --> 00:05:19,280
And without further ado, I think
Chris is going to help me 

106
00:05:19,280 --> 00:05:22,720
basically create a Starlight 
site and and get rolling and 

107
00:05:22,720 --> 00:05:25,160
then we can take questions as 
they come along. 

108
00:05:25,160 --> 00:05:27,320
I see quite a few people out 
here. 

109
00:05:28,000 --> 00:05:31,000
I see Sarah out here. 
I always mess up the name. 

110
00:05:31,400 --> 00:05:35,960
Heather made it. 
Yeah, I think it's Othorva. 

111
00:05:36,000 --> 00:05:37,840
Yeah, I don't have 
pronunciation. 

112
00:05:37,840 --> 00:05:39,800
I I'm not sure. 
Terrible at pronunciation. 

113
00:05:40,160 --> 00:05:43,000
So without further ado, let's 
get started. 

114
00:05:45,840 --> 00:05:47,920
Switch up our view here. 
There we go. 

115
00:05:48,720 --> 00:05:51,840
So this is this is the 
Starlight's kind of main site 

116
00:05:51,840 --> 00:05:55,000
and you can get out to the 
GitHub page really easily and 

117
00:05:55,000 --> 00:05:58,520
also just start on the getting 
started and the the interesting 

118
00:05:58,520 --> 00:06:00,360
part, this little inception, 
right? 

119
00:06:00,360 --> 00:06:03,560
Starlight's documentation is 
built with Starlight, right? 

120
00:06:04,440 --> 00:06:06,360
Correct. 
Yeah, it'd be weird if it wasn't

121
00:06:06,360 --> 00:06:07,840
right. 
Yeah, totally. 

122
00:06:09,600 --> 00:06:13,360
So today we're gonna build a 
little document site using 

123
00:06:13,360 --> 00:06:14,480
Starlight. 
What do you think? 

124
00:06:15,240 --> 00:06:17,920
That sounds really great. 
Yeah. 

125
00:06:19,280 --> 00:06:20,920
Hey, Tweeze here too. 
Hey, Tweeze. 

126
00:06:23,600 --> 00:06:26,120
Yeah. 
So this is the that I hopefully 

127
00:06:26,120 --> 00:06:28,240
like the quick start. 
I don't know you, you've played 

128
00:06:28,240 --> 00:06:29,600
around with Astro before, right?
Like. 

129
00:06:30,120 --> 00:06:32,600
Yeah. 
So Matthew on and off want to 

130
00:06:32,600 --> 00:06:38,200
run Astra as our main site and 
more so lately on, but I I've 

131
00:06:38,240 --> 00:06:41,360
I've done too many rewrites on 
the site between next JS and now

132
00:06:41,360 --> 00:06:45,360
we're on Svelkit. 
So I've kind of been using 

133
00:06:45,360 --> 00:06:48,200
Svelkit and the interesting 
part, of course, which maybe we 

134
00:06:48,200 --> 00:06:51,440
should talk about a little bit 
is if you haven't used Astro 

135
00:06:51,440 --> 00:06:55,000
before is you can kind of use 
any component that you want. 

136
00:06:55,000 --> 00:06:56,960
You can use React, you can use 
felt. 

137
00:06:56,960 --> 00:06:59,680
So like you can plug those in 
where needed. 

138
00:07:00,040 --> 00:07:02,200
But the, the core engine of it 
all. 

139
00:07:02,200 --> 00:07:04,760
And that's, that's we can get 
into island architecture if you 

140
00:07:04,760 --> 00:07:07,880
want that side of things. 
But the, the core of it is kind 

141
00:07:07,880 --> 00:07:11,600
of it would, it started at first
as a, a static site generator, 

142
00:07:11,600 --> 00:07:14,720
right? 
And that's Astros mainly like 

143
00:07:14,720 --> 00:07:17,640
Markdown or MDX and and that's 
how it flows into it. 

144
00:07:18,880 --> 00:07:20,000
Yeah, that's kind of the 
origins. 

145
00:07:20,000 --> 00:07:22,680
I mean Astro has become 
increasingly powerful I think 

146
00:07:22,680 --> 00:07:26,520
over the last year or so now can
do fully like dynamically 

147
00:07:26,520 --> 00:07:29,320
rendered, like on demand 
rendered SSR apps where like 

148
00:07:29,320 --> 00:07:31,880
everything's using user state or
like that's all possible. 

149
00:07:32,840 --> 00:07:36,320
I still think that like the, I 
hear a lot from users being 

150
00:07:36,320 --> 00:07:39,320
like, oh, I try to set up a site
with MDX and some other tool and

151
00:07:39,320 --> 00:07:43,000
it took me like a week just to 
get my MDX config set up And 

152
00:07:43,000 --> 00:07:45,880
then like, it just works. 
Like how come it's so simple? 

153
00:07:45,880 --> 00:07:48,400
So there's been a lot of work 
put into just like, oh, you want

154
00:07:48,400 --> 00:07:49,920
to use MDX? 
Here's the tool for that. 

155
00:07:49,920 --> 00:07:52,600
And it just, we just, it's like 
1 integration or in the case of 

156
00:07:52,600 --> 00:07:55,480
Starlight, it actually just 
comes bundled because we know if

157
00:07:55,480 --> 00:07:58,080
you're using Starlight, you, 
it's very likely you, you want 

158
00:07:58,080 --> 00:08:00,360
to, you know, have a component 
in your MDX document. 

159
00:08:00,360 --> 00:08:01,560
So we just support that 
out-of-the-box. 

160
00:08:03,440 --> 00:08:05,720
But yeah, you're right that one 
of the nice things about 

161
00:08:05,720 --> 00:08:08,320
Starlight, about Astro in 
general is that it supports all 

162
00:08:08,320 --> 00:08:10,120
those frameworks. 
So if you're a spell person, 

163
00:08:10,120 --> 00:08:12,800
like you really spell 
components, and maybe we'll see 

164
00:08:12,800 --> 00:08:15,040
that later on the stream, like 
you could plug in a small 

165
00:08:15,040 --> 00:08:17,600
component, throw that in your 
docs and and that's totally 

166
00:08:17,600 --> 00:08:19,800
possible. 
But equally, if you're a react 

167
00:08:19,800 --> 00:08:24,040
person, you go ahead and use 
React or I think I it's also 

168
00:08:24,040 --> 00:08:25,560
possible to use multiple of 
these, right? 

169
00:08:25,560 --> 00:08:28,360
And then, and normally we say 
like that's not really the 

170
00:08:28,360 --> 00:08:30,360
intended use case. 
Like you're probably, you're 

171
00:08:30,480 --> 00:08:34,640
probably not building a, a, a 
site which has React and view 

172
00:08:34,640 --> 00:08:38,240
and small on it. 
Like maybe it's some like really

173
00:08:38,240 --> 00:08:40,480
big scale where like different 
sections of a site are managed 

174
00:08:40,480 --> 00:08:42,559
by different teams or something.
Maybe that makes sense. 

175
00:08:42,559 --> 00:08:44,720
But like on the whole, I'd say 
that's rare. 

176
00:08:44,920 --> 00:08:46,960
But in a doc's case, I don't 
know, maybe you have like a 

177
00:08:46,960 --> 00:08:51,120
design system that has like a 
web component version of some 

178
00:08:51,120 --> 00:08:54,400
components and a small version 
of them and a React version of 

179
00:08:54,400 --> 00:08:55,280
that. 
That's a thing that like 

180
00:08:55,280 --> 00:08:57,760
different teams are using and, 
and you could totally have those

181
00:08:57,760 --> 00:09:00,240
all on the same doc site. 
So that that kind of thing would

182
00:09:00,240 --> 00:09:02,480
work and maybe is a really valid
use case. 

183
00:09:03,560 --> 00:09:06,000
Yeah, 100%. 
I I think it's interesting too. 

184
00:09:06,000 --> 00:09:08,920
Like I, I see a lot of people 
that like they don't want to go 

185
00:09:08,920 --> 00:09:11,440
down the React Rd. but then 
there's this like amazing React 

186
00:09:11,440 --> 00:09:15,000
table or something that was 
created as a library and like 

187
00:09:15,400 --> 00:09:18,480
one page will have just that 
piece to it, which is awesome 

188
00:09:18,480 --> 00:09:20,680
because it, the astral will 
handle it and load it. 

189
00:09:20,680 --> 00:09:23,400
And like that one page might be 
slower than the rest of the 

190
00:09:23,400 --> 00:09:25,520
statically generated pages and 
things like that. 

191
00:09:25,520 --> 00:09:30,120
So it's a really cool option. 
I love it A little bit of AAI 

192
00:09:30,120 --> 00:09:34,720
guess self pitch here. 
So I did interview Fred probably

193
00:09:34,720 --> 00:09:36,360
a year ago. 
What's the date on this? 

194
00:09:36,360 --> 00:09:39,600
Yeah, wow, we're we're creeping 
up on two years ago now. 

195
00:09:39,640 --> 00:09:42,040
Geez. 
O Pete's kind of the early 

196
00:09:42,040 --> 00:09:45,360
beginnings of Astro. 
So if you definitely, definitely

197
00:09:45,360 --> 00:09:48,200
check out that podcast if you 
want to learn more about the 

198
00:09:48,200 --> 00:09:52,760
beginnings of Astro and early on
before what are we up to version

199
00:09:52,760 --> 00:09:55,360
four dot O, is that right? 
Yeah, 4 dot O is out since 

200
00:09:55,520 --> 00:09:56,600
December. 
Nice. 

201
00:09:56,600 --> 00:10:01,280
So this was, I think right 
around one O dropped maybe, but 

202
00:10:01,280 --> 00:10:02,680
pretty early. 
I think so, yeah, yeah, I don't 

203
00:10:02,680 --> 00:10:04,120
remember. 
Maybe it was a little later when

204
00:10:04,320 --> 00:10:05,840
we may have been like building 
up to it then. 

205
00:10:05,840 --> 00:10:08,280
I don't know. 
We've got a lot, a little bit of

206
00:10:08,280 --> 00:10:10,560
stick from people being like, 
hey, you, you keep releasing all

207
00:10:10,560 --> 00:10:12,800
these major versions. 
Like we've, you know, I think 

208
00:10:12,800 --> 00:10:15,280
we've had one for roughly every 
six months, although I don't 

209
00:10:15,280 --> 00:10:16,720
think that's going to continue 
necessarily. 

210
00:10:16,720 --> 00:10:20,600
But we, we like to say like, you
know, a major a major version, 

211
00:10:20,720 --> 00:10:23,360
stuff breaks, but we've really 
worked hard to make it like 

212
00:10:24,280 --> 00:10:26,120
things have improved and small 
things have broken. 

213
00:10:26,120 --> 00:10:29,800
But like, we've had plenty of 
people who've like upgraded even

214
00:10:29,800 --> 00:10:32,520
from like 1:00 to 4:00 with like
no problems. 

215
00:10:32,520 --> 00:10:35,080
So there are breaking changes. 
We have like detailed guides in 

216
00:10:35,080 --> 00:10:36,920
the docs. 
But don't be afraid just because

217
00:10:36,920 --> 00:10:39,000
we're like racing ahead with 
those version numbers trying to 

218
00:10:39,000 --> 00:10:41,280
catch up the next 13. 
Maybe we'll be be there by next 

219
00:10:41,280 --> 00:10:43,880
year. 
But yeah, no, like they're 

220
00:10:43,880 --> 00:10:45,920
mostly pretty small majors, if 
that makes sense. 

221
00:10:46,400 --> 00:10:48,840
Yeah, now that everybody's on V,
it should all be a piece of 

222
00:10:48,840 --> 00:10:54,040
cake, right? 
So all right, so let's create a 

223
00:10:54,160 --> 00:10:57,000
Starlight website for the most 
part. 

224
00:10:57,000 --> 00:11:01,320
And then as always, so we do 
about 90 minutes, you know, with

225
00:11:01,400 --> 00:11:03,680
kind of the chat in the 
beginning on code with coding 

226
00:11:03,680 --> 00:11:05,200
cat. 
And what we'll end up with is a 

227
00:11:05,200 --> 00:11:07,520
GitHub repo. 
So if you want to grab that and 

228
00:11:07,520 --> 00:11:10,960
keep running with it, feel free.
So Chris is going to walk me 

229
00:11:10,960 --> 00:11:13,680
through all the parts and pieces
as we get going here. 

230
00:11:14,720 --> 00:11:18,640
So is this the best spot for me 
to kind of follow along or do 

231
00:11:18,640 --> 00:11:21,920
you want to just tell me all the
parts to do? 

232
00:11:22,960 --> 00:11:25,480
Yeah, I think this is perfect. 
Guide like this should be a very

233
00:11:25,480 --> 00:11:28,160
quick start. 
Like that command there that you

234
00:11:28,160 --> 00:11:30,920
can just copy paste. 
I don't know if you have NPM or 

235
00:11:30,920 --> 00:11:34,160
PNPM or what you prefer to use, 
but I always get you going. 

236
00:11:34,360 --> 00:11:38,520
I should tell people like I 
always so the P just adds oh it 

237
00:11:38,520 --> 00:11:40,200
is slightly different. 
I was going to say. 

238
00:11:40,200 --> 00:11:43,320
Usually I always put AP and then
paste the NPM command and we're 

239
00:11:43,320 --> 00:11:45,200
good to go type of thing. 
It should work. 

240
00:11:45,200 --> 00:11:47,240
I think that works too. 
Like I, you know, there's like a

241
00:11:47,240 --> 00:11:49,480
lot of, they all have aliases, 
so they all kind of work the 

242
00:11:49,480 --> 00:11:52,000
same, but. 
Oops, I am in the wrong folder. 

243
00:11:52,240 --> 00:11:55,880
That might have been a mistake. 
I always have this remove 

244
00:11:55,880 --> 00:11:58,480
folder. 
There we go guess we get crazy. 

245
00:12:01,720 --> 00:12:04,280
Oh, I love this by the way. 
So let's make this a little 

246
00:12:04,280 --> 00:12:07,360
bigger. 
So we had the Houston if you if 

247
00:12:07,360 --> 00:12:10,480
you didn't see it here when we 
popped up, but it it kind of 

248
00:12:10,480 --> 00:12:13,480
walks you the Astra CLI walks 
you through so much cool stuff. 

249
00:12:13,480 --> 00:12:16,680
It's amazing. 
It's going to be the same here. 

250
00:12:16,680 --> 00:12:20,200
So we just to like briefly 
explain the command you pasted, 

251
00:12:20,200 --> 00:12:23,600
but that's the standards as like
scaffolding command for starting

252
00:12:23,600 --> 00:12:25,200
any Astro project. 
The only difference is we've 

253
00:12:25,200 --> 00:12:27,640
added that template Starlight in
there. 

254
00:12:27,640 --> 00:12:30,040
So it's going to, it's not going
to ask you any questions about 

255
00:12:30,040 --> 00:12:31,080
which template you might want to
use. 

256
00:12:31,080 --> 00:12:32,960
And we've kind of already told 
of that, but it'll ask you all 

257
00:12:32,960 --> 00:12:34,560
the regular questions. 
So like where you want to create

258
00:12:34,560 --> 00:12:35,680
your project, those kinds of 
things. 

259
00:12:36,200 --> 00:12:38,320
I love it. 
Can we just do dot? 

260
00:12:39,480 --> 00:12:41,120
Yes, we'll do. 
Sure, I think so. 

261
00:12:41,120 --> 00:12:43,080
If the if the directory is 
empty, it should work. 

262
00:12:43,120 --> 00:12:45,080
If it's not, and then they might
complain. 

263
00:12:45,480 --> 00:12:47,360
I I think it's not the more I 
think about it. 

264
00:12:47,360 --> 00:12:49,440
So we'll we'll roll with magenta
meteor. 

265
00:12:49,440 --> 00:12:52,840
I like that. 
I like so it popped out the the 

266
00:12:52,840 --> 00:12:55,080
template here already. 
So it's good. 

267
00:12:56,320 --> 00:12:58,760
Maybe still hard to see as it's 
this big. 

268
00:12:58,760 --> 00:13:00,720
So there we go. 
We'll we'll roll with this and 

269
00:13:00,720 --> 00:13:03,680
see how long I can type for love
TypeScript. 

270
00:13:03,680 --> 00:13:05,800
Let's keep that. 
What do you think? 

271
00:13:05,920 --> 00:13:07,800
Strict? 
I always I always roll with 

272
00:13:08,000 --> 00:13:10,960
strict should be. 
Fine, I mean you up to use like 

273
00:13:10,960 --> 00:13:14,240
strictest is also fine. 
There's not a huge difference 

274
00:13:14,280 --> 00:13:17,680
honestly between the two. 
So go ahead and install 

275
00:13:17,680 --> 00:13:20,800
Initialize. 
That's so cool. 

276
00:13:20,800 --> 00:13:23,200
I don't know who's working on 
your CLI, but it's got to be a 

277
00:13:23,200 --> 00:13:26,520
lot of fun. 
Yeah, I mean, a lot of people 

278
00:13:26,520 --> 00:13:28,960
contributing. 
I mean, Nate, Nate Moore is like

279
00:13:28,960 --> 00:13:32,920
the person who built out the. 
We have a kind of a library 

280
00:13:32,920 --> 00:13:34,360
backing this. 
And he's also has like a side 

281
00:13:34,360 --> 00:13:37,040
project called Clack for 
building these kinds of 

282
00:13:37,200 --> 00:13:39,280
interfaces. 
But yeah, a lot of love and 

283
00:13:39,280 --> 00:13:41,160
attention. 
Like someone just the other day 

284
00:13:41,160 --> 00:13:44,280
realized like used to like pause
between each of these steps. 

285
00:13:44,280 --> 00:13:46,720
So you would say like, I'll copy
the template and it would like 

286
00:13:46,720 --> 00:13:48,920
copy the template slowly and 
then it would, you know, 

287
00:13:48,920 --> 00:13:50,280
dependencies, install 
dependencies. 

288
00:13:50,280 --> 00:13:51,560
Do you want to start to get like
the? 

289
00:13:51,800 --> 00:13:54,240
And now we switched it. 
So like does it at the end, you 

290
00:13:54,240 --> 00:13:56,320
know, you get through all your 
flow and then you just, it runs 

291
00:13:56,320 --> 00:13:58,040
it all. 
So like these little details 

292
00:13:58,040 --> 00:14:00,400
that I, I wouldn't even have 
thought of that, but but we have

293
00:14:00,400 --> 00:14:02,040
these people who noticed that 
and that's great. 

294
00:14:02,840 --> 00:14:05,800
I think Ellen's saying that 
Sarah's going to give us hot 

295
00:14:05,800 --> 00:14:09,000
take if we pressure her enough, 
so we'll see. 

296
00:14:10,920 --> 00:14:15,960
Astro 5IN. 
OK, so we have a site. 

297
00:14:16,040 --> 00:14:21,880
Let me pop that open since I 
totally didn't do this right do 

298
00:14:21,880 --> 00:14:25,280
that, Britney's going to kill 
me. 

299
00:14:25,560 --> 00:14:27,960
She always tells me there's a 
there's a command and code to 

300
00:14:27,960 --> 00:14:29,280
just pop it up in the same 
window. 

301
00:14:29,280 --> 00:14:31,480
I keep forgetting it. 
All right. 

302
00:14:32,120 --> 00:14:33,280
I don't think I knew that 
either. 

303
00:14:34,120 --> 00:14:36,480
So there's a a nice little 
scaffolding that we have out 

304
00:14:36,480 --> 00:14:38,840
here. 
Do you want to walk through kind

305
00:14:38,840 --> 00:14:41,360
of what it's given us with the 
template? 

306
00:14:42,920 --> 00:14:44,240
Yeah. 
So like the basics that we're 

307
00:14:44,240 --> 00:14:45,960
looking here is a standard kind 
of Astro layout. 

308
00:14:45,960 --> 00:14:49,320
We have this Astro dot config 
file which kind of configures 

309
00:14:49,720 --> 00:14:52,800
your general project. 
So maybe just quickly look at 

310
00:14:52,880 --> 00:14:55,320
Astro dot config just in the 
root there. 

311
00:14:55,320 --> 00:14:57,720
There we go. 
So here we can see like some 

312
00:14:57,720 --> 00:15:00,560
basic stuff. 
We can see Starlight is listed 

313
00:15:00,560 --> 00:15:03,720
there as an integration. 
So Astro in general has a 

314
00:15:03,720 --> 00:15:07,320
concept of integrations which 
like plug insurance that add 

315
00:15:07,920 --> 00:15:10,640
specific functionalities. 
It's a way to like ship a, a 

316
00:15:10,640 --> 00:15:12,760
specific like subset of 
functionality in a package that 

317
00:15:12,760 --> 00:15:16,120
you can easily add to a project.
So you could add React this way 

318
00:15:16,120 --> 00:15:20,200
or you could add trying to think
what other common things now. 

319
00:15:20,200 --> 00:15:25,360
But yeah, there's a bunch. 
There's a bunch of them and like

320
00:15:25,440 --> 00:15:27,280
third party, third party ones, 
official ones. 

321
00:15:27,680 --> 00:15:29,960
And Starlight is the same. 
It's just like, it's just a 

322
00:15:29,960 --> 00:15:33,520
standard integration and it has 
its own custom config that we'll

323
00:15:33,520 --> 00:15:34,920
get to eventually. 
So you can see that listed 

324
00:15:34,920 --> 00:15:37,200
there. 
But that's it so far. 

325
00:15:37,200 --> 00:15:39,920
That's the config. 
Seems easy enough. 

326
00:15:40,440 --> 00:15:42,200
I'm curious how many socials we 
can add. 

327
00:15:42,200 --> 00:15:44,480
Maybe there's like 40 of them 
like I have on our site. 

328
00:15:46,000 --> 00:15:49,800
I don't lose no like I wonder if
we'll hit any though where where

329
00:15:49,800 --> 00:15:52,480
we don't support them because 
this is like those ones we have 

330
00:15:52,480 --> 00:15:54,360
to support internally, but. 
Gotcha. 

331
00:15:54,520 --> 00:15:56,400
Yeah, I had to add Mastodon the 
other day. 

332
00:15:56,440 --> 00:15:59,000
I was like, oh, and I think you 
were, you were one of these 

333
00:15:59,000 --> 00:16:03,200
people that like I asked for a 
Twitter link or whatever, or X 

334
00:16:03,200 --> 00:16:05,240
now. 
And I think yours is Mastodon, 

335
00:16:05,240 --> 00:16:07,040
right? 
I do have a message on account. 

336
00:16:07,040 --> 00:16:10,120
Yeah, that's the one I use. 
So luckily I added that 

337
00:16:10,120 --> 00:16:13,200
recently. 
Anyways, couple fun things just 

338
00:16:13,200 --> 00:16:15,920
in the chat. 
Apparently Sarah wants to give 

339
00:16:15,920 --> 00:16:20,280
us till 2025 so we all have to 
relax on the Astro Five piece. 

340
00:16:20,800 --> 00:16:24,560
Tom wants to know if I can 
switch over to the Houston VS 

341
00:16:24,560 --> 00:16:27,840
Code theme. 
Maybe we'll see how far we get 

342
00:16:27,840 --> 00:16:28,560
first. 
I don't. 

343
00:16:29,160 --> 00:16:31,320
I don't know. 
Before we get on to the the fun,

344
00:16:31,680 --> 00:16:33,440
it is beautiful. 
It's a beautiful dark theme 

345
00:16:33,440 --> 00:16:37,040
designed by Nate, I think 
actually on the team comes with 

346
00:16:37,760 --> 00:16:40,240
comes with Houston, who's the 
little mascot we saw on the CLI 

347
00:16:40,240 --> 00:16:41,920
who like sits in the corner of 
VS Code. 

348
00:16:41,920 --> 00:16:44,080
And if you have like problems 
with your code, he cries. 

349
00:16:46,000 --> 00:16:48,440
That reminds me of the old 
Clippy, if everyone's old enough

350
00:16:48,440 --> 00:16:51,760
to to know Microsoft's Clippy. 
Yeah, definitely a big 

351
00:16:51,760 --> 00:16:55,680
inspiration. 
Cool, so standard config it 

352
00:16:55,680 --> 00:16:57,440
looks like. 
So we added the the integration 

353
00:16:57,440 --> 00:16:59,480
for Starlight. 
We have that piece in there. 

354
00:17:00,880 --> 00:17:02,520
And then we've got a couple 
directories. 

355
00:17:02,520 --> 00:17:04,920
We have public and source. 
Public is kind of like a static 

356
00:17:04,920 --> 00:17:06,520
directory. 
This stuff just gets copied over

357
00:17:06,520 --> 00:17:08,640
to your site. 
Nothing happens to it. 

358
00:17:08,640 --> 00:17:11,200
It doesn't get processed. 
Like if you just like we've got 

359
00:17:11,200 --> 00:17:13,760
the favicon in there, but maybe 
if you had some images or like a

360
00:17:13,760 --> 00:17:16,000
press asset or something, you 
don't want to get processed. 

361
00:17:16,000 --> 00:17:18,079
You can stick stuff in there. 
But most of the stuff we're 

362
00:17:18,079 --> 00:17:20,680
going to look at is in source. 
Awesome. 

363
00:17:21,920 --> 00:17:25,280
And in content and yeah, with 
assets, we've got an image and 

364
00:17:25,280 --> 00:17:27,640
then in content you'll see we 
have like the stocks directory 

365
00:17:28,079 --> 00:17:29,320
and that's where all the content
lives. 

366
00:17:29,320 --> 00:17:33,600
So and the start template just 
scaffolded as a few pages. 

367
00:17:33,600 --> 00:17:38,960
So we have an index dot MDX, 
which is our like home page has 

368
00:17:39,000 --> 00:17:41,440
a bunch of content kind of pre 
filled in there just to give us 

369
00:17:41,440 --> 00:17:43,920
an example. 
And we have Guide and References

370
00:17:43,920 --> 00:17:48,840
as a couple of our examples. 
And so just remind me to spend a

371
00:17:48,840 --> 00:17:52,720
minute. 
When I do like Spelt, it's Spelt

372
00:17:52,720 --> 00:17:55,480
Kit. 
It's always like directory based

373
00:17:55,480 --> 00:17:59,720
and then like plus pages. 
Is there anything with naming or

374
00:17:59,720 --> 00:18:01,880
anything like that people should
consider when they're creating 

375
00:18:01,880 --> 00:18:04,120
this? 
It's just one to 1. 

376
00:18:04,120 --> 00:18:07,760
So like in this case, index is 
going to become your homepage 

377
00:18:07,800 --> 00:18:11,000
like the slash route and then 
you're going to have a router 

378
00:18:11,240 --> 00:18:14,240
guide slash example, reference 
slash example in this case from 

379
00:18:14,240 --> 00:18:16,880
these three files. 
So it's just yeah, file based 

380
00:18:16,880 --> 00:18:18,800
routing. 
There's no special like syntax 

381
00:18:18,800 --> 00:18:21,600
or anything. 
The name will end up, I think 

382
00:18:21,600 --> 00:18:24,480
the names do get sluggified 
internally. 

383
00:18:24,480 --> 00:18:27,120
So if you had some really like 
wild characters in there, maybe 

384
00:18:27,120 --> 00:18:29,920
they might like, I don't know if
you if it was like a full of 

385
00:18:30,760 --> 00:18:33,400
hashes or something, maybe those
get converted to hyphens. 

386
00:18:33,400 --> 00:18:38,600
I'm not, I'm not 100% sure. 
But yeah, basically, basically. 

387
00:18:38,600 --> 00:18:40,800
Oh yeah, Astrodox is heavily 
represented in astronaut. 

388
00:18:44,120 --> 00:18:48,200
Oh, Houston, it's nice. 
So what I have on screen here, 

389
00:18:48,200 --> 00:18:50,960
if people aren't used to it and 
they're coming from like Acms or

390
00:18:50,960 --> 00:18:56,400
something like that in a MDX 
page or a there's a dot Astro 

391
00:18:56,400 --> 00:18:59,480
page as well, right? 
Those exist, yeah. 

392
00:18:59,600 --> 00:19:01,200
Starlight's a little bit 
different because it's really 

393
00:19:01,200 --> 00:19:03,440
marked down and it's, it's like 
content based, right? 

394
00:19:03,440 --> 00:19:05,600
Like we need title metadata and 
all this other stuff to be able 

395
00:19:05,600 --> 00:19:08,720
to render. 
So we can maybe look towards the

396
00:19:08,720 --> 00:19:11,000
end about how to use dot Astro 
pages with Starlight. 

397
00:19:11,000 --> 00:19:13,960
It's totally possible, but like 
the main use case is like, oh, 

398
00:19:13,960 --> 00:19:16,880
we're just going to stick with 
lockdown MDX for now or Mark 

399
00:19:17,040 --> 00:19:18,360
doc. 
If you want to use mark doc, 

400
00:19:18,360 --> 00:19:20,720
that's like the other 
alternative like content format.

401
00:19:21,440 --> 00:19:24,360
Cool. 
So in a markdown page, in a 

402
00:19:24,360 --> 00:19:27,440
traditional one, whether it's 
this index or just this example,

403
00:19:27,440 --> 00:19:30,080
you'll see both of these have 
this kind of these dashes. 

404
00:19:30,080 --> 00:19:32,800
That's your front matter that 
exists out here. 

405
00:19:33,640 --> 00:19:36,120
And then each one of these is 
just metadata that's kind of 

406
00:19:36,160 --> 00:19:39,880
poured throughout it. 
Something that's special, which 

407
00:19:39,880 --> 00:19:43,760
we should probably talk about is
kind of this piece here. 

408
00:19:44,120 --> 00:19:46,880
What is that actually doing in a
markdown file? 

409
00:19:46,880 --> 00:19:50,040
It's kind of weird. 
Right, so this is MDX. 

410
00:19:50,280 --> 00:19:52,080
You'll notice there is a slight 
difference between those files. 

411
00:19:52,080 --> 00:19:54,680
We have like example dot MD 
which is a regular markdown file

412
00:19:55,200 --> 00:19:59,040
and then we have this index dot 
MDX which is a format which 

413
00:19:59,040 --> 00:20:01,560
builds on markdown like as you 
can see in that file you have 

414
00:20:01,560 --> 00:20:04,880
like this next steps header. 
It's still. 

415
00:20:05,680 --> 00:20:07,560
More regular like in markdown 
format. 

416
00:20:07,560 --> 00:20:10,000
If for anyone who hasn't seen 
Markdown before, like that's a 

417
00:20:10,440 --> 00:20:13,560
second level heading, like an H2
tag gets produced out of that, 

418
00:20:13,800 --> 00:20:16,520
like hash, hash, next steps. 
So that's regular Markdown 

419
00:20:16,520 --> 00:20:18,960
syntax. 
But MDX extends that with the 

420
00:20:18,960 --> 00:20:22,680
possibility to import a 
component like you would in 

421
00:20:23,200 --> 00:20:28,000
React or like another language 
and then use syntax to use 

422
00:20:28,000 --> 00:20:28,960
those. 
So like in this case, we're 

423
00:20:28,960 --> 00:20:31,280
importing some built in 
components that Starlight 

424
00:20:31,280 --> 00:20:34,880
provides and using them to build
a a little grid. 

425
00:20:35,200 --> 00:20:37,640
It might be maybe it makes sense
to run the dev server and have a

426
00:20:37,640 --> 00:20:39,000
look at what this looks at 
looks. 

427
00:20:39,000 --> 00:20:43,840
Like PMPM run dev? 
Yep, I was told the other day I 

428
00:20:43,840 --> 00:20:46,040
can just do this. 
You can indeed. 

429
00:20:46,040 --> 00:20:47,960
Yeah, PMPM, you don't need the 
run. 

430
00:20:48,480 --> 00:20:52,280
Gosh, I love PMPM. 
I'm on the wrong window. 

431
00:20:52,280 --> 00:20:55,600
Hang on one minute. 
Drag this over. 

432
00:20:55,600 --> 00:20:57,400
Here we go. 
Yes. 

433
00:20:58,960 --> 00:21:01,040
So this is this site we're 
creating, right? 

434
00:21:01,840 --> 00:21:03,880
That's the site. 
We just scuffled it out and you 

435
00:21:03,880 --> 00:21:06,080
can see we were just looking at 
that like next steps heading and

436
00:21:06,080 --> 00:21:08,800
the card grid and we can see 
those like on the screen here. 

437
00:21:10,560 --> 00:21:13,120
Beautiful man. 
It it looks sharp already. 

438
00:21:14,840 --> 00:21:16,800
I didn't look at the styling too
much. 

439
00:21:16,800 --> 00:21:19,920
Tailwind possibility. 
Or default there is a tailwind 

440
00:21:19,920 --> 00:21:22,320
possibility. 
We actually have a dedicated 

441
00:21:22,320 --> 00:21:24,800
template for that. 
Even if if if you know from like

442
00:21:25,680 --> 00:21:27,960
day one I need a dockside, it 
needs to support tailwind. 

443
00:21:28,600 --> 00:21:30,880
We have a Tailwind template that
you we could have used to 

444
00:21:30,880 --> 00:21:32,360
scuffle this out. 
Very cool. 

445
00:21:32,920 --> 00:21:35,560
But we also have a guide in the 
docs for adding it if you need 

446
00:21:35,560 --> 00:21:38,120
to. 
Yeah. 

447
00:21:38,120 --> 00:21:40,400
So it's by default. 
It's not it's all like vanilla 

448
00:21:40,400 --> 00:21:45,080
CSS mainly to try and be like 
one of the challenges I found 

449
00:21:45,080 --> 00:21:47,280
like a similarly with the the 
Astro thing of supporting all 

450
00:21:47,280 --> 00:21:50,120
these frameworks is like, OK, so
we support all the frameworks 

451
00:21:50,240 --> 00:21:51,840
like React view. 
So. 

452
00:21:52,480 --> 00:21:56,360
So what do we use to build this 
tool which anyone could want 

453
00:21:56,360 --> 00:21:58,640
like like they might want to use
pre act, they might want to use 

454
00:21:58,720 --> 00:22:00,960
spell or like, you know, and I 
don't want to have to, I don't 

455
00:22:00,960 --> 00:22:02,800
want to make a decision already 
like, oh, you've got to include 

456
00:22:02,800 --> 00:22:05,240
one of these. 
So like a lot of our decisions 

457
00:22:05,240 --> 00:22:07,760
on Starlight is like, OK, we'll 
accept maybe building with the 

458
00:22:07,760 --> 00:22:09,640
less powerful tool. 
So it's all web components in 

459
00:22:09,640 --> 00:22:12,080
this case. 
It's just, yeah, I'm writing 

460
00:22:12,080 --> 00:22:15,200
like super minimal JavaScript 
web components to keep things 

461
00:22:15,280 --> 00:22:17,280
light minimal. 
And like if you then choose to 

462
00:22:17,280 --> 00:22:21,240
use reactor view or spell, it 
doesn't feel weird that maybe 

463
00:22:21,240 --> 00:22:22,600
like Starlight's already using 
1. 

464
00:22:23,240 --> 00:22:25,520
So it's similarly with the CSSI 
was like, oh, could be nice with

465
00:22:25,640 --> 00:22:28,680
Tailwind, but if we just use the
simple stuff, then the people 

466
00:22:28,680 --> 00:22:31,640
who want Tailwind, they get it. 
People who don't, don't have to 

467
00:22:32,160 --> 00:22:33,800
like. 
Are you using anything like 

468
00:22:34,000 --> 00:22:37,200
fancy to write the the web 
components like stencil JS or 

469
00:22:37,200 --> 00:22:39,720
anything like that or you just 
kind of writing them all wrong? 

470
00:22:40,520 --> 00:22:44,640
No, actually this is kind of off
topic for the stream I get, but 

471
00:22:44,640 --> 00:22:48,920
I guess, but Astro is really 
nice for web components. 

472
00:22:48,920 --> 00:22:52,480
So I, this is kind of like a 
trend going on right now, like 

473
00:22:52,480 --> 00:22:55,960
HTML web components that people 
have been talking about, where 

474
00:22:56,200 --> 00:22:59,800
the idea is kind of, instead of 
the shadow Dom, like mysterious 

475
00:22:59,800 --> 00:23:04,520
web component that like springs 
to life and like, you know, 

476
00:23:04,880 --> 00:23:08,120
inject stuff with JavaScript 
instead, you imagine like a web 

477
00:23:08,120 --> 00:23:09,360
cone. 
It's like, no, it has to have 

478
00:23:09,360 --> 00:23:11,800
some HTML in it. 
And then you use a web component

479
00:23:11,800 --> 00:23:14,040
to wrap that HTML and like 
progressively enhance it. 

480
00:23:14,040 --> 00:23:16,840
So you add some extra behavior 
that it wouldn't have without 

481
00:23:16,840 --> 00:23:18,720
it. 
And so a lot of the patents like

482
00:23:18,720 --> 00:23:21,040
that work really well in Astro 
because you already have like 

483
00:23:21,040 --> 00:23:23,120
the component concept, right? 
You're going to grab a component

484
00:23:24,600 --> 00:23:28,040
and then we just have a script 
tag in our Astro component and 

485
00:23:28,200 --> 00:23:31,640
write a web component in there. 
And yeah, kind of superpower a 

486
00:23:31,640 --> 00:23:33,960
bit of HTML, but you're already 
rendering all that HTML on the 

487
00:23:33,960 --> 00:23:36,320
server. 
It's like, so you don't have to 

488
00:23:36,320 --> 00:23:38,480
really do any of the complex 
tape templating stuff a lot of 

489
00:23:38,480 --> 00:23:41,920
the time. 
And certainly for me, I really 

490
00:23:41,920 --> 00:23:44,320
enjoy working that way. 
It's nice. 

491
00:23:44,720 --> 00:23:47,360
I think it'd be less fun when I 
think they'll like shadow Dom 

492
00:23:47,360 --> 00:23:50,760
World of Web components is a 
little more painful, but these 

493
00:23:50,760 --> 00:23:54,320
are kind of lightweight. 
It's basically like a. 

494
00:23:54,400 --> 00:23:56,360
It's basically a document query 
selector and then. 

495
00:23:56,760 --> 00:23:59,120
But it's a little bit nicer when
it's web component. 

496
00:23:59,920 --> 00:24:03,000
Yeah, it's, it's interesting. 
And I, I wrote some stuff and it

497
00:24:03,000 --> 00:24:06,880
took me back with Astro just web
components and I'm like, Oh 

498
00:24:06,880 --> 00:24:08,920
yeah, I have to do this selector
thing. 

499
00:24:08,920 --> 00:24:11,840
I'm used to using like spelt to 
do that and things like that. 

500
00:24:11,840 --> 00:24:14,480
So there are some like 
trade-offs for sure. 

501
00:24:14,480 --> 00:24:17,040
But like that's that's why 
framework's there, right. 

502
00:24:17,040 --> 00:24:19,200
So it's interesting. 
Yeah. 

503
00:24:19,400 --> 00:24:22,160
Cool. 
So I I see a couple special 

504
00:24:22,160 --> 00:24:25,480
things like we might be used to 
title, description, but there's 

505
00:24:25,480 --> 00:24:28,680
like talk about like templates 
and this hero thing. 

506
00:24:28,680 --> 00:24:32,280
Like how do those get involved? 
Yeah, yeah. 

507
00:24:32,280 --> 00:24:36,240
So maybe wait, can we switch 
quickly back to the the preview 

508
00:24:36,280 --> 00:24:38,320
or like the dev server preview 
in the browser? 

509
00:24:39,120 --> 00:24:42,560
Yeah. 
So this is our like landing 

510
00:24:42,560 --> 00:24:44,040
page. 
So you we saw in the front 

511
00:24:44,040 --> 00:24:45,560
matter it had like that template
splash. 

512
00:24:45,840 --> 00:24:47,840
But if you jump to the example 
guide, if you click the button 

513
00:24:47,840 --> 00:24:52,040
there, this is kind of the more 
this is like the default. 

514
00:24:52,080 --> 00:24:54,200
If you if we hadn't specified 
that this is the default layout 

515
00:24:54,200 --> 00:24:56,280
you get. 
So you have dash bar on the left

516
00:24:56,480 --> 00:24:58,560
table of contents. 
So that's the main difference. 

517
00:24:58,560 --> 00:25:02,040
Like the that template front 
matter is basically a toggle to 

518
00:25:02,040 --> 00:25:04,760
switch between a layout, a kind 
of doc layout. 

519
00:25:04,760 --> 00:25:06,880
When you've got like you've got 
to document table of contents 

520
00:25:06,880 --> 00:25:09,720
and getting like your average 
page is probably going to use 

521
00:25:09,720 --> 00:25:11,680
this. 
And then the splash one is 

522
00:25:12,080 --> 00:25:14,160
primarily for a homepage, 
although it could also be like 

523
00:25:14,160 --> 00:25:17,480
maybe you have sections and like
the landing page of each section

524
00:25:17,480 --> 00:25:21,320
has like a, a, a splash layout 
with some cards or something 

525
00:25:21,320 --> 00:25:23,360
like you, you know, obviously 
you could do whatever you want, 

526
00:25:24,040 --> 00:25:28,200
but it's considered like it's 
thought or tended to be used as 

527
00:25:28,200 --> 00:25:32,040
a, as a home page, let's say. 
And where do you tend to like 

528
00:25:32,080 --> 00:25:34,480
are? 
Is someone creating this splash 

529
00:25:34,480 --> 00:25:37,400
template over in here somewhere 
for a layout like? 

530
00:25:37,400 --> 00:25:40,560
How do those get involved? 
They're just, yeah, they're 

531
00:25:40,560 --> 00:25:41,960
built in. 
They're just built in. 

532
00:25:41,960 --> 00:25:43,040
Something we've just built in, 
yeah. 

533
00:25:43,440 --> 00:25:46,600
And can you extend them at all? 
So like I don't want the front 

534
00:25:46,600 --> 00:25:48,680
page to quite look like that. 
I want it like this. 

535
00:25:48,800 --> 00:25:50,720
How do you how do you go about 
those things? 

536
00:25:51,520 --> 00:25:54,280
Yeah, you can. 
So we have a couple different 

537
00:25:54,280 --> 00:25:55,440
ways. 
I mean the 1st way is just like 

538
00:25:56,120 --> 00:25:57,600
throw some custom CSS in it, 
right? 

539
00:25:57,600 --> 00:26:00,840
Like we you can just write acss 
file, tell Starlight about it 

540
00:26:00,840 --> 00:26:01,960
and then we'll like load that 
in. 

541
00:26:02,200 --> 00:26:05,040
I guess we could do that if you 
want if that seems exciting. 

542
00:26:05,520 --> 00:26:08,320
I'll I'll follow your if I 
should follow the guide like we 

543
00:26:08,320 --> 00:26:10,840
can go next steps where wherever
you want to. 

544
00:26:10,840 --> 00:26:13,280
Take it. 
Yeah, Well, you want to 

545
00:26:13,280 --> 00:26:15,240
customize the color scheme. 
Does that, does that seem 

546
00:26:15,680 --> 00:26:16,720
important yet? 
Yeah. 

547
00:26:16,720 --> 00:26:22,800
OK, OK, let's jump to the docs. 
OK, Starlight docs, and if you 

548
00:26:22,800 --> 00:26:28,440
go to CSS and styling cool and 
you scroll right down at the 

549
00:26:28,440 --> 00:26:32,320
bottom, there's a little theme 
editor right down to like the 

550
00:26:32,320 --> 00:26:33,480
bottom of that page. 
All the way bottom. 

551
00:26:33,560 --> 00:26:36,360
OK, yeah, yeah, yeah. 
Let's make it a little bigger. 

552
00:26:39,200 --> 00:26:41,720
Cool. 
So this little editor here you 

553
00:26:41,720 --> 00:26:45,400
can tweak and choose colors. 
I don't know, purple seems to be

554
00:26:45,400 --> 00:26:47,080
a a coding cat color. 
Yep. 

555
00:26:49,520 --> 00:26:51,000
Awesome. 
Wow. 

556
00:26:51,080 --> 00:26:53,200
You can. 
You can kind of get a lot 

557
00:26:53,200 --> 00:26:55,040
involved here, huh? 
Right. 

558
00:26:55,040 --> 00:26:57,720
And you just get a preview like 
write live, like you can see the

559
00:26:58,120 --> 00:27:00,320
kind of preview your changes on 
the on that doc site. 

560
00:27:00,880 --> 00:27:02,800
And then when you're ready, when
you're happy with like some 

561
00:27:02,800 --> 00:27:07,840
settings, you can just grab the 
CSS that's that's printed out 

562
00:27:07,840 --> 00:27:10,600
there. 
Cool, grab that. 

563
00:27:12,200 --> 00:27:16,520
And now create the CSS file is 
somewhere in source, doesn't 

564
00:27:16,520 --> 00:27:17,920
really matter where. 
You could have like a source 

565
00:27:17,920 --> 00:27:23,040
slash styles and that's CSS or 
however you fancy organizing it 

566
00:27:23,040 --> 00:27:26,840
doesn't really matter. 
I'll just main that CSS maybe. 

567
00:27:27,080 --> 00:27:27,600
Sounds good. 
Awesome. 

568
00:27:32,480 --> 00:27:34,680
Perfect. 
And now we're going to want to 

569
00:27:34,680 --> 00:27:41,440
open our Astro config and in the
Starlight options. 

570
00:27:43,280 --> 00:27:48,440
Let's see here Starlight. 
Yeah, and just add a new option 

571
00:27:48,520 --> 00:27:53,560
or like a new property there 
called custom CSS and it's going

572
00:27:53,560 --> 00:28:01,040
to be an array and we're just 
going to pass it like the path 

573
00:28:01,040 --> 00:28:05,600
to the file we just created. 
So I guess dot source styles 

574
00:28:05,600 --> 00:28:14,520
main CSS. 
Probably a string, I would 

575
00:28:14,520 --> 00:28:16,200
assume, right? 
Yeah, yeah, yeah. 

576
00:28:18,800 --> 00:28:19,400
Cool. 
OK. 

577
00:28:19,720 --> 00:28:21,280
I think you should just save 
that and it should. 

578
00:28:21,280 --> 00:28:24,600
The dev server should just 
restart automatically and look 

579
00:28:24,600 --> 00:28:26,080
at that love. 
It's purple you. 

580
00:28:26,840 --> 00:28:29,720
Guys will have to tell me on 
stream if the purple's working 

581
00:28:29,720 --> 00:28:35,360
for your if we need to go back. 
I always forget the command. 

582
00:28:35,360 --> 00:28:44,720
So if we do a inspect and then 
you can do dark switch to dark 

583
00:28:45,000 --> 00:28:48,680
beam and then not switch, maybe 
not. 

584
00:28:49,760 --> 00:28:52,720
There's a theme Switcher at the 
top right of this of the site. 

585
00:28:53,160 --> 00:28:54,680
Of course there is totally 
missing it. 

586
00:28:54,760 --> 00:28:56,240
Thank you. 
No worries. 

587
00:28:57,480 --> 00:28:59,680
So there's kind of the light 
mode, dark mode. 

588
00:29:00,520 --> 00:29:03,680
Yeah, yeah, it's awesome. 
Like defaults to automatic, but 

589
00:29:03,680 --> 00:29:07,560
then users still have the option
to switch back, switch to their 

590
00:29:07,560 --> 00:29:08,520
preference. 
Yeah. 

591
00:29:09,160 --> 00:29:11,160
Very neat. 
That's, that's a really cool 

592
00:29:11,160 --> 00:29:14,960
thing. 
I'm I'm also kind of curious. 

593
00:29:15,200 --> 00:29:18,800
I keep seeing the search bar if 
we want to talk through that a 

594
00:29:18,800 --> 00:29:22,000
little more. 
Definitely, yeah, search is 

595
00:29:22,000 --> 00:29:23,560
obviously really important for 
docs, right? 

596
00:29:23,560 --> 00:29:26,400
Like if you, if you're in a 
docs, you often need to find 

597
00:29:26,400 --> 00:29:28,800
something really specific that 
you've got stuck on or, or you 

598
00:29:28,800 --> 00:29:32,240
want to work out how to do it. 
And so one of the things we 

599
00:29:32,240 --> 00:29:35,160
really wanted to do was make 
sure that search was kind of 

600
00:29:35,160 --> 00:29:38,880
out-of-the-box. 
And it is, it's using a really 

601
00:29:38,880 --> 00:29:42,400
cool tool from Cloud Cannon. 
It's an open source tool called 

602
00:29:42,400 --> 00:29:45,120
Pagefind. 
Cloud Cannon is like an agency 

603
00:29:45,120 --> 00:29:51,600
and development company, but 
Pagefind is, it's actually 

604
00:29:51,600 --> 00:29:53,880
interesting they, they produce a
lot of tools along this lines 

605
00:29:53,880 --> 00:29:57,360
which are really built to work 
with kind of any pipeline. 

606
00:29:57,360 --> 00:30:01,400
Like often they'll work on like 
a folder of HTML output rather 

607
00:30:01,400 --> 00:30:03,520
than being like something that 
has to wire into your build 

608
00:30:03,520 --> 00:30:06,160
process or something. 
And it makes them quite 

609
00:30:06,160 --> 00:30:08,840
flexible. 
So Pagefind is particularly 

610
00:30:08,840 --> 00:30:12,680
interesting because it is 
designed for low bandwidth use, 

611
00:30:12,720 --> 00:30:16,240
like it in and without a server 
specifically like right? 

612
00:30:16,240 --> 00:30:19,240
If you think about search, maybe
you think about Algolier or like

613
00:30:19,240 --> 00:30:23,320
some other like thing where you 
have to like spin up expensive 

614
00:30:23,520 --> 00:30:27,360
database and search index and 
like a server to pipe back 

615
00:30:27,360 --> 00:30:28,680
results to you and that kind of 
thing. 

616
00:30:30,920 --> 00:30:33,240
And the alternative to that is 
often being like full text 

617
00:30:33,240 --> 00:30:36,560
search, but you like have to 
download 20 megabytes of data to

618
00:30:36,560 --> 00:30:37,920
like get it to run on the 
client. 

619
00:30:38,800 --> 00:30:43,240
And so Liam McCloud kind of like
done a really amazing job on on 

620
00:30:43,240 --> 00:30:46,200
page find it. 
It basically, I don't know how 

621
00:30:46,200 --> 00:30:47,760
deep we want to go into the 
details, but it basically 

622
00:30:47,760 --> 00:30:52,000
managed to Shard a search index 
into like many pieces, but 

623
00:30:52,000 --> 00:30:55,360
they're static, so they can be 
served by a flat file server 

624
00:30:55,360 --> 00:30:59,760
alongside your static site. 
And the client piece is clever 

625
00:30:59,760 --> 00:31:03,040
enough to know how to like grab.
It's like you type in, I don't 

626
00:31:03,040 --> 00:31:06,240
know, a, A and it's like, oh, I 
know, like, I just need the 

627
00:31:06,240 --> 00:31:08,280
first chart over here. 
I'll go grab that and I can 

628
00:31:08,280 --> 00:31:10,880
search in that little piece. 
So even if you have a lot of 

629
00:31:10,880 --> 00:31:13,840
data, I think they have like 
demos of it with MDN and various

630
00:31:13,840 --> 00:31:17,840
other like pretty big sites. 
Wow, that's pretty incredible, 

631
00:31:18,240 --> 00:31:19,880
yeah. 
And you know, you're obviously 

632
00:31:19,960 --> 00:31:22,080
going to download a little bit 
of data to do that search, but 

633
00:31:22,840 --> 00:31:26,360
it's pretty lightweight, pretty 
snappy, and it works really well

634
00:31:26,360 --> 00:31:29,480
on a first sight. 
So yeah, that comes 

635
00:31:29,480 --> 00:31:32,240
out-of-the-box. 
We're going to have to, if you 

636
00:31:32,240 --> 00:31:35,280
want to test that out on our 
example content, we'd have to 

637
00:31:35,280 --> 00:31:38,160
build the site like the one 
requirement is like, you know, 

638
00:31:38,280 --> 00:31:40,280
you only get search once you 
actually build the site. 

639
00:31:40,280 --> 00:31:42,840
We can't offer it like in dev 
where nothing like everything's 

640
00:31:42,840 --> 00:31:46,920
floating around in memory, but 
definitely I can curious. 

641
00:31:46,920 --> 00:31:50,840
Like what those files look like.
So let's do a build. 

642
00:31:53,320 --> 00:31:57,160
I think they're in like a binary
like compressed binary format. 

643
00:31:57,160 --> 00:32:03,240
So I think they'll they'll look 
like a Oh, interesting. 

644
00:32:04,040 --> 00:32:07,840
OK, that's just a type check 
error. 

645
00:32:07,840 --> 00:32:10,200
We can go to the if you go to 
package dot Jason. 

646
00:32:11,080 --> 00:32:13,800
Sure. 
You'll see that when it on the 

647
00:32:13,800 --> 00:32:15,760
build script there because we 
said we want to TypeScript. 

648
00:32:15,760 --> 00:32:17,360
It's like, oh, you also want to 
check everything. 

649
00:32:17,920 --> 00:32:21,640
You can just remove the Astro 
check like it's a that type 

650
00:32:21,640 --> 00:32:22,640
error. 
I'm not sure where it's coming 

651
00:32:22,640 --> 00:32:23,960
from, but I'm pretty sure it's 
not correct. 

652
00:32:23,960 --> 00:32:25,760
So pretty sure if we build 
should be good. 

653
00:32:29,080 --> 00:32:31,720
Yeah, cool. 
Here's the Dist. 

654
00:32:32,880 --> 00:32:35,960
It's always fun to look at this.
So like people sometimes that 

655
00:32:35,960 --> 00:32:39,600
are like writing Angular or 
something like that, they they 

656
00:32:39,600 --> 00:32:42,160
forget about like all these 
files that are still required 

657
00:32:42,160 --> 00:32:44,760
when you're serving static. 
So it's cool to see like index 

658
00:32:44,760 --> 00:32:48,680
to HTML and like all of these 
actual pages that are coming out

659
00:32:48,680 --> 00:32:51,960
of this. 
So here it looks like is the the

660
00:32:51,960 --> 00:32:56,240
page find piece. 
Yeah, this is this is crazy. 

661
00:32:58,160 --> 00:33:02,080
So index, that's probably, 
that's probably the piece right 

662
00:33:02,080 --> 00:33:04,640
there. 
So then there's like this binary

663
00:33:04,640 --> 00:33:06,960
format that it uses to compress 
all that data and make it 

664
00:33:07,040 --> 00:33:09,920
lightweight. 
Cool. 

665
00:33:09,920 --> 00:33:11,960
So not really anything you can 
do, I guess. 

666
00:33:11,960 --> 00:33:14,520
I mean, they and they have like 
a wasm piece that runs on the 

667
00:33:14,520 --> 00:33:16,880
browser to like parse it. 
There's a lot of clever stuff 

668
00:33:16,880 --> 00:33:18,000
there. 
It's like it's in Rust. 

669
00:33:18,000 --> 00:33:20,600
It like, I don't know, even on 
big sites, it seems to be able 

670
00:33:20,600 --> 00:33:23,160
to index all that local HTML 
like lightning. 

671
00:33:24,040 --> 00:33:26,800
So really happy with, with that 
as a choice. 

672
00:33:26,800 --> 00:33:29,520
I'm really happy that people get
that out-of-the-box because I 

673
00:33:29,520 --> 00:33:32,120
know like a lot of docs tools 
will integrate with other 

674
00:33:32,120 --> 00:33:34,280
services, but often it's like, 
OK, I have to like sign up for 

675
00:33:34,280 --> 00:33:37,800
an account somewhere and then 
like add a plug in and you know,

676
00:33:38,120 --> 00:33:40,960
so it is really nice that, that 
we can just be like, no, you 

677
00:33:40,960 --> 00:33:42,360
just build your site and search 
works. 

678
00:33:43,280 --> 00:33:48,000
We have a, we have a plug in for
Algalia's doc search. 

679
00:33:48,040 --> 00:33:51,400
So I know like some open source 
projects have access to that and

680
00:33:51,400 --> 00:33:53,800
we have a plug in to like allow 
you to toggle that out if you 

681
00:33:53,800 --> 00:33:55,400
need it. 
But. 

682
00:33:55,680 --> 00:33:57,440
But yeah, out-of-the-box that 
uses Pagefind. 

683
00:33:57,920 --> 00:34:01,520
Pagefind does it do as much like
contextual stuff as Algolia 

684
00:34:01,520 --> 00:34:04,600
still? 
There's some limitations, right,

685
00:34:04,600 --> 00:34:07,200
Like you don't have a because 
you don't have a smart like 

686
00:34:07,200 --> 00:34:09,480
server kind of parsing your 
query like your. 

687
00:34:09,719 --> 00:34:14,000
It's all has to be static. 
Yeah, it's a little bit more 

688
00:34:14,000 --> 00:34:16,360
limited and like, I don't know, 
something we've done on the 

689
00:34:16,360 --> 00:34:19,920
Astro docks with Algolier is 
like, oh, people keep searching 

690
00:34:19,920 --> 00:34:22,280
for this word that, but we use 
this other one like we'll just 

691
00:34:22,280 --> 00:34:23,960
put in a synonym like you can't 
really do that. 

692
00:34:24,800 --> 00:34:27,000
Although that might be a waste 
for them to do it. 

693
00:34:27,000 --> 00:34:28,520
I'd be curious to see how they 
solve it. 

694
00:34:28,520 --> 00:34:30,360
But yeah, there's there's 
limits. 

695
00:34:30,360 --> 00:34:33,080
But but for most use cases I 
think it works pretty well. 

696
00:34:33,719 --> 00:34:36,600
So just to break down a few 
more, just out of this build 

697
00:34:36,600 --> 00:34:40,600
folder too, if we look at again,
we had index page, but then we 

698
00:34:40,600 --> 00:34:42,520
have reference example, guides, 
examples. 

699
00:34:42,520 --> 00:34:45,760
So when we take a look up here, 
we have reference example. 

700
00:34:45,760 --> 00:34:50,199
Here's your index HTML that 
comes out, looks like there's a 

701
00:34:50,199 --> 00:34:52,679
decent amount going on and here 
still. 

702
00:34:52,679 --> 00:34:57,200
So just just to show like under 
the hood, it's really nice to 

703
00:34:57,200 --> 00:34:59,440
like write your mark down and 
it's really easy. 

704
00:34:59,480 --> 00:35:02,000
But when you have all of these 
updates and things that are 

705
00:35:02,000 --> 00:35:05,480
still required scripts and 
things like that, that's what 

706
00:35:05,480 --> 00:35:10,560
the great part about static 
generation does and what Astra 

707
00:35:10,560 --> 00:35:15,000
does. 
So going to try to do this. 

708
00:35:15,240 --> 00:35:17,680
There we go and we're. 
Going to see the whole structure

709
00:35:17,680 --> 00:35:20,280
A. 
Little better, I know people 

710
00:35:20,280 --> 00:35:22,960
won't be able to see this, but 
just to shrink it down and show 

711
00:35:22,960 --> 00:35:25,360
it a little more. 
Just all the metadata and and 

712
00:35:25,360 --> 00:35:27,320
stuff that comes out of it. 
Right. 

713
00:35:27,320 --> 00:35:31,080
Like we take care of like the 
SEO tags, canonical URLs and 

714
00:35:31,080 --> 00:35:32,840
things like that. 
I mean, I guess we probably 

715
00:35:32,840 --> 00:35:34,680
haven't yet because we haven't 
told it where we're deploying 

716
00:35:34,680 --> 00:35:36,160
our site. 
But like, you know, if we set, 

717
00:35:36,160 --> 00:35:39,280
tell it like the site URL, we'd 
be able to add canonicals and 

718
00:35:39,280 --> 00:35:44,520
stuff like that, generate a site
map and all all the kinds of 

719
00:35:44,520 --> 00:35:46,760
little things that you're, you 
have to wire up, right? 

720
00:35:46,760 --> 00:35:48,840
If they're needed, but they're 
kind of annoying. 

721
00:35:49,080 --> 00:35:51,680
So it's, I, I think it's nice 
that they come up, you know? 

722
00:35:51,680 --> 00:35:53,600
Ready to go? 
Cool. 

723
00:35:54,400 --> 00:35:57,480
What do you what do you think we
should go through next? 

724
00:35:58,720 --> 00:36:00,960
Maybe we should show off a 
little bit of our like code 

725
00:36:00,960 --> 00:36:04,240
documentation tools because 
obviously like one of the main 

726
00:36:04,240 --> 00:36:07,040
audiences of of this kind of 
product is technical 

727
00:36:07,040 --> 00:36:09,960
documentation. 
And we have this really cool 

728
00:36:09,960 --> 00:36:12,480
engine built in called 
Expressive code. 

729
00:36:14,000 --> 00:36:16,160
What's a good if you jump to the
markdown? 

730
00:36:16,160 --> 00:36:17,440
Oh yeah, you'll find it that 
way, I think. 

731
00:36:18,360 --> 00:36:20,920
Nice. 
So here we get a few examples. 

732
00:36:22,480 --> 00:36:26,240
Basically it's a kind of code 
annotation tool. 

733
00:36:27,080 --> 00:36:28,720
I mean, most people are probably
familiar. 

734
00:36:28,720 --> 00:36:31,400
Like you can write a markdown 
code block with these little 3 

735
00:36:31,400 --> 00:36:35,520
back ticks and you can tell you 
can like specify a language like

736
00:36:35,520 --> 00:36:39,320
JavaScript or Markdown or C or 
whatever it is you're writing in

737
00:36:39,880 --> 00:36:42,800
and get syntax highlighted code 
like you would in editor. 

738
00:36:45,000 --> 00:36:50,200
But we have a community member, 
Hippo, who started contributing 

739
00:36:50,200 --> 00:36:53,400
to Astros docs and like realized
we had these other use cases 

740
00:36:53,400 --> 00:36:55,560
like, hey, when you're writing 
documentation, you might want to

741
00:36:55,560 --> 00:37:00,400
highlight specific details. 
You might want to have like a 

742
00:37:00,400 --> 00:37:02,360
word or a line highlighted. 
So that's what we're seeing 

743
00:37:02,360 --> 00:37:05,320
here. 
And so kind of extended that 

744
00:37:05,600 --> 00:37:10,720
default markdown syntax for us 
in a way that means you can kind

745
00:37:10,720 --> 00:37:14,560
of draw attention to things. 
So here, here we have the kind 

746
00:37:14,560 --> 00:37:17,040
of the lower example here is 
the, the syntax that is 

747
00:37:17,040 --> 00:37:19,520
producing the, the, the example 
above. 

748
00:37:19,960 --> 00:37:23,120
So here you can see like this 
two to three span is giving us a

749
00:37:23,120 --> 00:37:26,040
highlight of of two of like 
lines two and three are 

750
00:37:26,040 --> 00:37:30,000
highlighted in the next example.
It's like you can use a string 

751
00:37:30,000 --> 00:37:33,640
or even a regular expression to 
highlight just kind of portions 

752
00:37:33,640 --> 00:37:37,320
of of text. 
That's that's amazing to be able

753
00:37:37,320 --> 00:37:40,440
to do that. 
Yeah, super, super handy to 

754
00:37:40,480 --> 00:37:42,840
like, especially when in longer 
code samples to draw attention 

755
00:37:42,840 --> 00:37:47,120
to things and silly here like 
this is like we have these 

756
00:37:47,120 --> 00:37:49,080
inserted and deleted variations 
as well. 

757
00:37:49,080 --> 00:37:51,520
So you can kind of say like, oh,
this, this, you need to delete 

758
00:37:51,520 --> 00:37:57,280
this code or something like we 
can show that in red and similar

759
00:37:57,280 --> 00:37:58,360
this. 
Yeah, the last example is the 

760
00:37:58,360 --> 00:38:01,320
same kind of thing. 
One of the weird drawbacks of 

761
00:38:01,320 --> 00:38:04,320
like most of these code syntax 
highlighting tools is that the 

762
00:38:04,320 --> 00:38:07,360
DIF you can like specify the 
language as DIF and use like 

763
00:38:07,600 --> 00:38:10,600
minus and pluses at the start of
a line to show code code diffs, 

764
00:38:10,920 --> 00:38:12,760
but they usually don't have any 
syntax highlighting. 

765
00:38:13,080 --> 00:38:15,240
So like the for the language 
you're using, it just shows you 

766
00:38:15,240 --> 00:38:19,040
the red and green, let's say. 
So in this case, you can add a 

767
00:38:19,560 --> 00:38:22,880
Lang equals and specify an 
additional language. 

768
00:38:23,640 --> 00:38:28,000
And then the you get the fully 
syntax highlighted code plus the

769
00:38:28,000 --> 00:38:31,440
DIF green and red like line 
deletions and stuff as well. 

770
00:38:31,440 --> 00:38:34,760
So we use that a lot in our 
upgrade guides when it's like, 

771
00:38:34,760 --> 00:38:37,560
hey, we changed something, you 
know, like you need to delete 

772
00:38:37,560 --> 00:38:38,720
this one line, change it to 
this. 

773
00:38:38,720 --> 00:38:41,360
Like really, really nice that we
can show those off in that way. 

774
00:38:42,920 --> 00:38:48,080
And the next piece, yeah, this 
is like we realized, I think 

775
00:38:48,080 --> 00:38:50,040
this is something we kind of 
done progressively as we worked 

776
00:38:50,040 --> 00:38:52,800
on Astros docs, is how important
and how useful it is to know 

777
00:38:52,800 --> 00:38:54,440
what file you're in. 
In the code snippet. 

778
00:38:54,440 --> 00:38:56,480
It's pretty common to just like 
see a code snippet without a 

779
00:38:56,480 --> 00:39:00,960
file name. 
So we talk about this at work 

780
00:39:00,960 --> 00:39:03,400
all the time and it's like, do 
we text really Say you're 

781
00:39:03,400 --> 00:39:07,320
looking at XYZ file or just put 
it like in the code snippet. 

782
00:39:07,320 --> 00:39:09,960
I prefer it this way, but like 
there's a lot of different 

783
00:39:09,960 --> 00:39:12,680
opinions on that too. 
Yeah, I mean both depends 

784
00:39:12,680 --> 00:39:14,200
probably a little bit on the 
context, right? 

785
00:39:14,200 --> 00:39:17,200
But this, this makes it really 
easy to add it as like a 

786
00:39:17,440 --> 00:39:19,800
visually separate part of your 
like here you can see this my 

787
00:39:19,800 --> 00:39:22,800
test file dot JS. 
It's not just a code comment 

788
00:39:22,800 --> 00:39:24,560
that you might overlook or 
something. 

789
00:39:24,680 --> 00:39:27,400
And it's very visible, kind of 
has that visual metaphor of the 

790
00:39:27,440 --> 00:39:29,880
editor tab or whatever. 
So you kind of understand that's

791
00:39:29,880 --> 00:39:32,400
what it is. 
And then same for a terminal, 

792
00:39:32,400 --> 00:39:36,320
like the terminal window helps 
show you that like, Oh yeah, 

793
00:39:36,320 --> 00:39:38,960
this is a command I type in my 
terminal and not like a file 

794
00:39:38,960 --> 00:39:42,360
somewhere or something. 
It's really cool with the 

795
00:39:42,360 --> 00:39:44,720
optional, like the optional 
title on there as well to help 

796
00:39:44,720 --> 00:39:47,480
describe it. 
Yeah. 

797
00:39:47,600 --> 00:39:49,040
So those are some of the cool 
features. 

798
00:39:49,040 --> 00:39:53,160
There's new ones all the time. 
If you go to I think it's 

799
00:39:53,160 --> 00:39:56,120
expressive hyphen code.com. 
There's a link somewhere in 

800
00:39:56,120 --> 00:39:59,120
there. 
I think they're at the top of 

801
00:39:59,120 --> 00:40:00,640
that section. 
At the top. 

802
00:40:02,360 --> 00:40:05,720
Oh, I guess we jumped into. 
The middle page reload, see if 

803
00:40:05,720 --> 00:40:10,000
it. 
No, if you, there you go. 

804
00:40:12,600 --> 00:40:14,760
I think it was this. 
That one, yeah. 

805
00:40:15,560 --> 00:40:17,160
Oh, that's the OK. 
We only have. 

806
00:40:17,200 --> 00:40:18,520
I need to update that they have 
a website now. 

807
00:40:18,520 --> 00:40:20,560
I think when I wrote these docs 
they the website wasn't ready 

808
00:40:20,560 --> 00:40:21,120
yet. 
Maybe. 

809
00:40:21,480 --> 00:40:23,320
Maybe this links out too. 
There we go. 

810
00:40:23,320 --> 00:40:25,440
Yes. 
Nice, which is their docs of 

811
00:40:25,440 --> 00:40:28,800
course are built with Starlight.
It's all in the family. 

812
00:40:28,800 --> 00:40:30,120
This is perfect. 
Yeah, absolutely. 

813
00:40:31,640 --> 00:40:32,880
Yeah. 
They have a bunch of cool stuff.

814
00:40:33,120 --> 00:40:35,880
Hippos just worked on a labeling
tool, so you can kind of like 

815
00:40:35,880 --> 00:40:38,360
label specific lines with like a
number or a letter or something 

816
00:40:38,360 --> 00:40:45,800
so that you could say. 
I don't know what this means, 

817
00:40:46,960 --> 00:40:48,720
but. 
I probably should know, but now 

818
00:40:48,720 --> 00:40:51,720
on on on air I'm blanking. 
I think Sarah's going to give us

819
00:40:51,720 --> 00:40:52,880
a hot take. 
Probably. 

820
00:40:52,880 --> 00:40:54,440
It's probably. 
We're going to get a we're going

821
00:40:54,440 --> 00:40:58,160
to get a hint, Sarah. 
Yeah. 

822
00:40:58,160 --> 00:40:59,920
So those cool things like 
definitely check it. 

823
00:40:59,920 --> 00:41:02,960
So it's super active project 
really in development and and 

824
00:41:02,960 --> 00:41:06,320
actually if you're interested in
expressive code, it doesn't just

825
00:41:06,320 --> 00:41:09,400
work in any Astro site. 
It works in like any site where 

826
00:41:10,200 --> 00:41:12,280
like rehype remark is being used
for the markdown. 

827
00:41:12,280 --> 00:41:14,600
So like you can use it with next
yes or something like that as 

828
00:41:14,600 --> 00:41:16,080
well. 
That's really great to know It's

829
00:41:16,080 --> 00:41:19,000
not exclusive. 
I'm using it in spell get right 

830
00:41:19,000 --> 00:41:21,960
now, so it'd be kind of cool to 
have more of that I think. 

831
00:41:22,680 --> 00:41:25,600
I can't even remember what code 
block syntax I'm using right 

832
00:41:25,600 --> 00:41:27,920
now, but it'd be cool to kind of
dive into this further. 

833
00:41:29,360 --> 00:41:31,920
Something that we're using at 
work and I'd have to go look up 

834
00:41:31,920 --> 00:41:35,720
the, the package name of it, but
we're actually taking and using 

835
00:41:35,720 --> 00:41:39,720
external like GitHub repos. 
So we have a lot of our like our

836
00:41:39,720 --> 00:41:43,560
SDKS or example or example repos
that are out there. 

837
00:41:43,840 --> 00:41:47,560
We can actually just put a link 
to those repos and it brings 

838
00:41:47,560 --> 00:41:49,400
the, the code block in that we 
want. 

839
00:41:49,640 --> 00:41:53,920
So that's that's been huge for 
us because we can just put that 

840
00:41:53,920 --> 00:41:57,880
tiny little snippet of go fetch 
this and on build it actually 

841
00:41:57,880 --> 00:42:00,320
goes out and grabs the the 
content that we need. 

842
00:42:01,120 --> 00:42:02,760
Yeah. 
Do you want to do that now in 

843
00:42:02,760 --> 00:42:06,240
Starlight? 
Oh sure, I I mean, if you want, 

844
00:42:06,240 --> 00:42:10,280
that'd be amazing apparently. 
Like line. 

845
00:42:10,280 --> 00:42:12,760
Numbers or the hot Dick? 
Oh, line. 

846
00:42:12,760 --> 00:42:15,040
Oh, line numbers. 
Yeah. 

847
00:42:15,040 --> 00:42:17,120
I was thinking of the labels. 
There's like a labeling feature 

848
00:42:17,120 --> 00:42:20,480
where you can select in a code 
snippet, say like, I don't know,

849
00:42:20,480 --> 00:42:24,120
a so that in your text you could
say like I'll see line a or 

850
00:42:24,120 --> 00:42:27,200
whatever. 
But yeah, like line numbers like

851
00:42:27,200 --> 00:42:31,160
just the 123-4567, like along 
the side that's I believe coming

852
00:42:31,160 --> 00:42:32,920
soon or maybe has even landed. 
I lost track. 

853
00:42:35,000 --> 00:42:37,120
Yeah, if you want to do like a 
dynamic code snippet, that's 

854
00:42:37,120 --> 00:42:39,920
totally possible. 
And maybe it's a good way to 

855
00:42:39,920 --> 00:42:42,760
show off like some of those MDX 
things and we can, we can do it 

856
00:42:42,760 --> 00:42:45,920
in a dot Astro component maybe 
and like show off that and like 

857
00:42:45,920 --> 00:42:47,360
pull it into one of our MDX 
files. 

858
00:42:47,640 --> 00:42:54,200
I'll take your lead. 
OK, let's create a components 

859
00:42:54,200 --> 00:43:02,480
file and source folder, sorry. 
And I guess we'll call this 

860
00:43:02,600 --> 00:43:04,720
remote code dot Astro, something
like that. 

861
00:43:08,440 --> 00:43:10,760
Nice. 
So this is an Astro component. 

862
00:43:10,760 --> 00:43:12,800
We mentioned them briefly I 
think earlier on. 

863
00:43:13,680 --> 00:43:17,160
Actually looks surprisingly 
similar to our MDX or mock down 

864
00:43:17,160 --> 00:43:19,720
because we have the same concept
of like this front matter with 

865
00:43:19,720 --> 00:43:23,720
like 3 dashes up top which 
allows us to write server code 

866
00:43:23,720 --> 00:43:25,400
or like logic that we want to 
run at build time. 

867
00:43:25,800 --> 00:43:28,920
And then the part below that is 
our kind of component content 

868
00:43:28,920 --> 00:43:32,000
like the the template or 
whatever exactly. 

869
00:43:33,000 --> 00:43:36,720
So I guess I don't know where 
we're going to fetch some code 

870
00:43:36,720 --> 00:43:38,640
from. 
That's the only thing we need to

871
00:43:38,640 --> 00:43:39,840
do. 
It from your your docs 

872
00:43:39,840 --> 00:43:42,240
somewhere, let's do that. 
OK, sure. 

873
00:43:42,400 --> 00:43:44,840
That will that be OK? 
Yeah, of course. 

874
00:43:46,640 --> 00:43:51,480
Let's see, you probably have a 
edit this, but yeah, here we go.

875
00:43:53,040 --> 00:43:55,480
So let's fetch something out of 
your guide. 

876
00:43:58,440 --> 00:44:00,960
How about you a long? 
Code sample, but let's do it 

877
00:44:02,120 --> 00:44:04,800
that's true. 
Do you want to will this? 

878
00:44:04,880 --> 00:44:06,440
Will this work? 
Do you think this is OK? 

879
00:44:06,440 --> 00:44:08,040
I think it should work, it's 
just going to be. 

880
00:44:08,280 --> 00:44:11,640
It'll just be a lot of code, so 
try it. 

881
00:44:11,960 --> 00:44:13,960
Dude, should I grab that whole 
thing? 

882
00:44:13,960 --> 00:44:16,240
Do we need like the role? 
Maybe you need the role link in 

883
00:44:16,240 --> 00:44:18,280
GitHub to get this? 
Like the plain text version of 

884
00:44:18,280 --> 00:44:20,240
this. 
Yes, you're right. 

885
00:44:21,800 --> 00:44:23,360
There we go. 
Yeah, that's, that's probably 

886
00:44:23,360 --> 00:44:25,200
what we want. 
OK, cool. 

887
00:44:25,200 --> 00:44:28,200
OK, so let's like await fetch 
that up top. 

888
00:44:28,280 --> 00:44:30,880
I guess we want it in a 
variable, but it's. 

889
00:44:34,160 --> 00:44:37,360
Crazy big oops, forgot the 
string. 

890
00:44:37,440 --> 00:44:41,240
Yeah, so. 
That's our request or like our 

891
00:44:41,240 --> 00:44:48,600
response I guess. 
And then we need to and this is 

892
00:44:48,600 --> 00:44:51,600
just like regular JavaScript, 
you know, standard stuff. 

893
00:44:51,600 --> 00:44:54,360
So we can I guess we await 
response dot text. 

894
00:44:55,280 --> 00:44:56,640
Oh, text. 
Yeah, that makes sense. 

895
00:44:56,640 --> 00:45:00,160
I haven't done text in a while. 
Yeah, I know. 

896
00:45:00,160 --> 00:45:02,520
It's almost always Jason, right?
Yeah, exactly. 

897
00:45:04,080 --> 00:45:09,280
So is it just that done? 
Yeah, maybe let's start with 

898
00:45:09,280 --> 00:45:12,120
that and we'll just see what 
happens and then we'll like get 

899
00:45:12,120 --> 00:45:13,400
it working. 
It's not going to work 

900
00:45:13,400 --> 00:45:14,680
perfectly, but it something will
happen. 

901
00:45:14,680 --> 00:45:18,760
So OK so we have our component 
that fetches data and like 

902
00:45:18,760 --> 00:45:22,040
plumps it there and we want to 
add it to one of our pages so. 

903
00:45:23,960 --> 00:45:26,520
Oops, I forgot we didn't run the
dev server. 

904
00:45:26,600 --> 00:45:27,880
Oh, right. 
We built before. 

905
00:45:27,880 --> 00:45:36,440
Yeah, OK. 
And so yeah, where do you choose

906
00:45:36,480 --> 00:45:37,600
a page? 
You want to put this on? 

907
00:45:38,120 --> 00:45:40,040
Maybe you want to oh, we like, 
we can create a new page. 

908
00:45:40,040 --> 00:45:41,360
Why not like? 
That's also fun. 

909
00:45:42,760 --> 00:45:47,040
Top level on content or. 
Doesn't it needs to be in the 

910
00:45:47,040 --> 00:45:50,000
docs? 
Folder OK docs folder trying to.

911
00:45:50,000 --> 00:45:52,400
Remember how this is set up? 
Maybe stick it in the reference 

912
00:45:52,480 --> 00:45:55,000
just just for now. 
OK, does it. 

913
00:45:55,240 --> 00:45:56,840
I'll I'll explain why in a 
minute, but. 

914
00:45:57,440 --> 00:46:01,960
How about remote MD? 
Yeah, or MDX. 

915
00:46:03,360 --> 00:46:04,520
MDX. 
Good point. 

916
00:46:04,520 --> 00:46:06,480
Yeah, we need an MDX for this 
case because we want to use a 

917
00:46:06,480 --> 00:46:09,680
component and actually just look
at the terminal quickly. 

918
00:46:09,680 --> 00:46:11,160
It's going to give us a helpful 
error. 

919
00:46:11,640 --> 00:46:16,960
OK. 
So docs reference remote dot MDX

920
00:46:17,200 --> 00:46:20,080
does not match collection schema
title required. 

921
00:46:20,840 --> 00:46:23,800
That's so handy. 
So I run into this all the time 

922
00:46:23,800 --> 00:46:27,320
doing our like previews. 
Usually when I book a, a guest. 

923
00:46:27,320 --> 00:46:29,440
I don't know if I sent this to 
you 'cause we're a little short 

924
00:46:29,440 --> 00:46:32,680
notice, but I, I usually send 
out here's the preview of your 

925
00:46:32,680 --> 00:46:34,720
page that'll come out and coding
gab blah blah, blah. 

926
00:46:34,720 --> 00:46:38,120
So I'm always forgetting to like
update that after we get done 

927
00:46:38,120 --> 00:46:39,960
with the show with our YouTube 
link or something. 

928
00:46:39,960 --> 00:46:41,680
Like that. 
Oh yeah, yeah. 

929
00:46:41,800 --> 00:46:44,800
So this is this is that's this 
is a standard Astro feature, but

930
00:46:44,920 --> 00:46:46,240
Starlight really benefits from 
it. 

931
00:46:46,960 --> 00:46:50,960
That we can. 
I mean, this is the only one 

932
00:46:50,960 --> 00:46:52,560
you'd hit. 
Like the only property that's 

933
00:46:52,560 --> 00:46:55,840
required there is title, but you
get this Helpful example. 

934
00:46:55,840 --> 00:46:57,600
And if we looked at the browser,
that would have popped up in the

935
00:46:57,600 --> 00:46:58,880
browser too. 
That's awesome. 

936
00:47:00,080 --> 00:47:04,240
Sweet, so we have our page and 
we want to import our component 

937
00:47:04,440 --> 00:47:08,280
I. 
Was just going to there's a 

938
00:47:08,280 --> 00:47:11,160
question out here I wanted to 
where we got too far. 

939
00:47:12,040 --> 00:47:16,160
Good idea to start the component
filing with uppercase letter it.

940
00:47:16,160 --> 00:47:19,400
Does not matter. 
So up to you. 

941
00:47:20,280 --> 00:47:23,600
I think we might need to when we
name our import like in the 

942
00:47:23,600 --> 00:47:25,280
code. 
Like when we import we may want 

943
00:47:25,280 --> 00:47:26,960
to make sure that isn't 
uppercase. 

944
00:47:26,960 --> 00:47:29,440
I'm not 100% sure on that. 
I will say like. 

945
00:47:29,960 --> 00:47:33,360
When I'm usually writing 
components, I usually will put 

946
00:47:33,360 --> 00:47:37,360
the component name like that. 
Interesting. 

947
00:47:37,360 --> 00:47:38,760
I don't know why I just did 
that. 

948
00:47:40,760 --> 00:47:43,600
That was there though, right? 
That's usually like how if it's 

949
00:47:43,600 --> 00:47:47,520
deleted but it's not deleted. 
That was that's weird and I 

950
00:47:47,520 --> 00:47:49,240
don't know why it's showing up 
in there. 

951
00:47:52,400 --> 00:47:55,640
I don't know what's going on, 
but let's let's see if this will

952
00:47:55,640 --> 00:47:56,960
work now I'm. 
Kind of. 

953
00:47:56,960 --> 00:47:58,240
If it doesn't work, we'll blame 
Hippo. 

954
00:47:58,560 --> 00:48:05,120
Yeah. 
So import below down here or. 

955
00:48:05,120 --> 00:48:09,680
Yeah, exactly. 
So in MDX the yeah, you, you 

956
00:48:09,680 --> 00:48:12,160
import in line. 
Oh, nice. 

957
00:48:12,160 --> 00:48:14,440
You get that in line. 
I don't have that fancy in line 

958
00:48:14,840 --> 00:48:15,960
arrow. 
That's that's cool. 

959
00:48:16,880 --> 00:48:19,320
So we call this whatever. 
You could call this import 

960
00:48:19,840 --> 00:48:25,720
remote or remote code or 
whatever from and now we need to

961
00:48:25,760 --> 00:48:28,200
have a. 
Power sign or aliases at all? 

962
00:48:29,120 --> 00:48:30,880
We could set one up. 
They don't. 

963
00:48:30,880 --> 00:48:33,000
We don't have like one. 
We're unopinionated about it 

964
00:48:33,000 --> 00:48:36,040
from the from the Kitco, but 
there we go. 

965
00:48:40,280 --> 00:48:43,280
I think you need the dot Astro. 
Yeah, I think so. 

966
00:48:44,640 --> 00:48:47,360
OK so nothing broke importing it
and now we should be able to 

967
00:48:47,360 --> 00:48:51,440
just render it with A tag, no? 
Like a component tag like with 

968
00:48:51,440 --> 00:48:57,920
the ankle brackets. 
Remote code slash like that. 

969
00:48:58,560 --> 00:48:59,240
Cool. 
Perfect. 

970
00:49:00,040 --> 00:49:02,680
Did it work? 
Let's see, this is going to be 

971
00:49:02,680 --> 00:49:05,520
at reference. 
No? 

972
00:49:05,560 --> 00:49:07,840
Where do we put this? 
If you go, if you jump into the 

973
00:49:07,840 --> 00:49:10,160
docs, it should show up in the 
sidebar. 

974
00:49:10,360 --> 00:49:11,360
Right. 
That's right. 

975
00:49:11,720 --> 00:49:13,840
That's the. 
The reference section is. 

976
00:49:13,840 --> 00:49:15,920
Oh, look at that. 
It's working, kind of. 

977
00:49:15,960 --> 00:49:21,960
Nazi so so now we just need to 
be able to take this, re parse 

978
00:49:21,960 --> 00:49:24,280
it and put out the the content 
right? 

979
00:49:24,760 --> 00:49:26,800
Yeah, but it should be pretty 
easy. 

980
00:49:28,160 --> 00:49:32,480
So if you do, we want to look at
the docs for it or do you just 

981
00:49:32,480 --> 00:49:34,720
want to try and do it? 
Totally up to you. 

982
00:49:35,640 --> 00:49:37,120
You're you. 
Can do it. 

983
00:49:37,360 --> 00:49:39,840
Hopefully I remember the the 
import it, it, it should be 

984
00:49:39,840 --> 00:49:42,400
pretty simple. 
So if we go back to our remote 

985
00:49:42,400 --> 00:49:47,480
code component, we're going to 
want to import a component into 

986
00:49:47,480 --> 00:49:49,320
this one. 
So we're going to import, I 

987
00:49:49,320 --> 00:49:50,560
guess up top in the front 
matter. 

988
00:49:51,480 --> 00:49:53,840
That's kind of confusing. 
Like an Astro file. 

989
00:49:53,840 --> 00:49:56,720
You'd do it in the front matter 
in MDX, so you don't. 

990
00:49:56,760 --> 00:49:58,440
Like, yeah, that's true. 
It's interesting. 

991
00:49:58,440 --> 00:50:02,160
Definitely. 
MDX is a weird format, I have to

992
00:50:02,160 --> 00:50:03,400
say. 
I mean, it's super powerful, but

993
00:50:03,400 --> 00:50:05,400
it is a kind of weird thing 
where it's like, oh, I'm writing

994
00:50:05,400 --> 00:50:08,040
Markdown, but I can also just 
import JavaScript in here and I 

995
00:50:08,040 --> 00:50:11,120
can await a fetch in my content.
It's kind of weird, but. 

996
00:50:11,200 --> 00:50:15,320
It's it's wild for sure. 
OK, so the module is going to be

997
00:50:15,640 --> 00:50:26,520
at Astro JS slash Starlight 
slash components slash code. 

998
00:50:26,520 --> 00:50:27,440
Oh, no, that's it. 
Sorry. 

999
00:50:27,440 --> 00:50:28,960
No slash, that's it, just slash 
components. 

1000
00:50:29,200 --> 00:50:31,720
And then you're going to want to
grab the code component. 

1001
00:50:31,840 --> 00:50:34,280
There we go. 
There you go. 

1002
00:50:34,440 --> 00:50:36,600
And now, yeah, we're going to 
render a component. 

1003
00:50:36,600 --> 00:50:38,320
So again, like angle brackets 
for that. 

1004
00:50:38,400 --> 00:50:41,440
Yeah. 
And then I think it has a code 

1005
00:50:41,440 --> 00:50:49,720
prop and that's going to be with
curly braces because it's a 

1006
00:50:49,720 --> 00:50:51,160
variable. 
Our content. 

1007
00:50:52,600 --> 00:50:54,440
OK, save that and let's see what
happens. 

1008
00:50:55,240 --> 00:50:59,520
Yeah, need to reload. 
Oh, huh. 

1009
00:51:00,040 --> 00:51:01,920
I think we have to parse, don't 
we? 

1010
00:51:03,280 --> 00:51:05,720
Oh, we're just showing this as 
code though, right? 

1011
00:51:05,960 --> 00:51:07,800
So. 
Yeah, it should show up. 

1012
00:51:07,800 --> 00:51:13,160
I wonder if that. 
Did we get Oops? 

1013
00:51:14,160 --> 00:51:17,200
Hold on. 
Oh wait, look in your sidebar. 

1014
00:51:17,720 --> 00:51:19,800
The remote code there is 
lowercase again. 

1015
00:51:22,200 --> 00:51:24,040
Interesting. 
Something weird is happening. 

1016
00:51:24,040 --> 00:51:25,680
I'm. 
I don't know what that is, but. 

1017
00:51:26,280 --> 00:51:28,840
Yeah, so hang on, let me do a 
refresh. 

1018
00:51:31,640 --> 00:51:35,440
Oh my gosh, developer reload. 
Let's try that. 

1019
00:51:37,560 --> 00:51:41,720
OK, so somehow we're editing an 
uppercase one that is like, not 

1020
00:51:41,720 --> 00:51:44,960
the real one. 
Oh yeah, that's totally weird. 

1021
00:51:44,960 --> 00:51:48,040
A little weird. 
OK, let's try using the lower 

1022
00:51:48,040 --> 00:51:51,240
case import yeah in there and 
see if that helps us at all. 

1023
00:51:51,240 --> 00:51:52,800
It's. 
A little weird, though. 

1024
00:51:52,800 --> 00:51:56,240
It's totally weird. 
OK, yes, but it's working that's

1025
00:51:56,480 --> 00:51:57,880
I don't know what I guess that 
rename. 

1026
00:51:58,520 --> 00:52:01,120
Someone was trying to trick us. 
I think in in the comments. 

1027
00:52:01,640 --> 00:52:03,880
Don't don't trick us. 
Live coding's hard enough. 

1028
00:52:04,400 --> 00:52:07,800
Yeah, absolutely. 
OK, so it's it looks already 

1029
00:52:07,800 --> 00:52:10,600
much better, right? 
Like we have a code block and 

1030
00:52:10,600 --> 00:52:13,760
the only thing that I guess a 
couple things here we go. 

1031
00:52:13,760 --> 00:52:16,080
So we could now tell the code 
component that this is marked 

1032
00:52:16,080 --> 00:52:18,160
down. 
So we might want to like get 

1033
00:52:18,160 --> 00:52:22,240
some syntax highlighting. 
So can you say like? 

1034
00:52:22,520 --> 00:52:29,160
Language. 
Perfect MD, cool boom, syntax 

1035
00:52:29,160 --> 00:52:32,440
highlighted. 
And yeah, now it even supports 

1036
00:52:32,440 --> 00:52:34,320
all those other features we were
looking at like highlighting 

1037
00:52:34,320 --> 00:52:35,840
lines and stuff. 
So we could say like go 

1038
00:52:35,840 --> 00:52:37,640
highlight line three or 
something if we wanted. 

1039
00:52:37,640 --> 00:52:42,720
Do not remember how to do that. 
It might be like a mark. 

1040
00:52:42,760 --> 00:52:44,120
I have a feeling like it might 
be mark. 

1041
00:52:44,120 --> 00:52:45,400
Otherwise we'd have to go look 
at the dogs. 

1042
00:52:47,280 --> 00:52:49,520
Oh smart. 
Yes, Intel sense for the. 

1043
00:52:50,560 --> 00:52:53,040
Meta. 
Mark. 

1044
00:52:53,040 --> 00:52:57,560
Yeah, I think it is. 
Mark, is there a type? 

1045
00:52:58,800 --> 00:53:00,360
No, not really. 
It's just a. 

1046
00:53:00,360 --> 00:53:02,640
Not really. 
It it's a, it can be a number. 

1047
00:53:02,640 --> 00:53:05,320
If it's a specific line, it can 
be a like a range. 

1048
00:53:05,320 --> 00:53:10,320
So we could put like 3 in here, 
it would highlight line 3, there

1049
00:53:10,320 --> 00:53:12,040
we go. 
Or we could like add like 3 

1050
00:53:12,040 --> 00:53:13,880
hyphen. 
I guess it would have to be a 

1051
00:53:13,880 --> 00:53:16,640
string then. 
But yeah, three hyphen 

1052
00:53:17,040 --> 00:53:17,840
something. 
Yeah, I. 

1053
00:53:20,800 --> 00:53:27,320
Probably do that, yeah. 
I, I don't know on that one. 

1054
00:53:27,960 --> 00:53:32,640
Let's go see if I probably 
should have left our normal DAX 

1055
00:53:32,640 --> 00:53:35,840
up here. 
We have code component 

1056
00:53:35,960 --> 00:53:37,400
components. 
Yeah, we have it on the 

1057
00:53:37,400 --> 00:53:51,000
components page. 
Well, it's it's here and over 

1058
00:53:51,000 --> 00:53:52,000
there. 
That's how you use it. 

1059
00:53:52,000 --> 00:53:53,440
Guess. 
Yeah. 

1060
00:53:53,520 --> 00:53:55,920
Anyway, you, we, we managed to 
fetch a snippet from GitHub, 

1061
00:53:56,720 --> 00:53:58,520
plug it in and like, obviously 
this was a kind of simple 

1062
00:53:58,520 --> 00:54:00,680
example. 
We could easily make it where 

1063
00:54:00,680 --> 00:54:04,800
like the URL gets passed in as a
prop. 

1064
00:54:04,800 --> 00:54:07,080
So like you'd have a remote code
component that just would like 

1065
00:54:07,080 --> 00:54:10,280
go fetch whichever code you tell
it to and like automatically 

1066
00:54:10,280 --> 00:54:13,880
maybe detect the format from the
file extension or something. 

1067
00:54:13,880 --> 00:54:16,320
And you know, you could build 
that by pretty quickly, I think.

1068
00:54:18,000 --> 00:54:20,840
I don't know why but your video.
Froze. 

1069
00:54:21,520 --> 00:54:23,800
Yeah, things are frozen for me 
too. 

1070
00:54:25,360 --> 00:54:28,240
I. 
Can hear you though like stream 

1071
00:54:28,240 --> 00:54:29,760
seems to be like. 
I don't see any movement, but I 

1072
00:54:29,760 --> 00:54:32,600
can hear you fine. 
Let's fix this. 

1073
00:54:38,960 --> 00:54:41,080
Perfect. 
Thank you, Hippo. 

1074
00:54:47,100 --> 00:54:48,340
Let's see. 
Did you come back? 

1075
00:54:48,340 --> 00:54:50,940
No. 
Still seems to be frozen on my 

1076
00:54:50,940 --> 00:54:59,260
end, but. 
Oh lost, lost Chris completely. 

1077
00:54:59,900 --> 00:55:01,100
Oh wait, you can't even hear me 
now. 

1078
00:55:01,140 --> 00:55:04,460
Chris Oh, I can hear you. 
Do you want to just try jumping 

1079
00:55:04,460 --> 00:55:05,980
out of Stream Yard and come back
in? 

1080
00:55:06,700 --> 00:55:07,700
Let's do it. 
Yeah, sure. 

1081
00:55:19,240 --> 00:55:24,400
So while he's doing that, I will
just bring up Astro as well 

1082
00:55:24,400 --> 00:55:28,920
since Astro is kind of important
piece of this. 

1083
00:55:28,920 --> 00:55:31,120
If you haven't checked out 
Astro, this is kind of the the 

1084
00:55:31,120 --> 00:55:36,360
main page as well that you can 
get to and the get it started is

1085
00:55:36,360 --> 00:55:40,320
great in here too. 
But it's a really cool way to 

1086
00:55:40,320 --> 00:55:44,280
make especially static contents.
They're definitely there's a lot

1087
00:55:44,280 --> 00:55:47,480
more dynamic now too, so you can
add different pieces to it. 

1088
00:55:48,400 --> 00:55:49,720
Oh interesting. 
I forgot. 

1089
00:55:49,720 --> 00:55:53,360
I I think this is now in Astro. 
I don't remember. 

1090
00:55:54,280 --> 00:55:57,640
I don't want to say that, but 
yeah, definitely cool. 

1091
00:55:59,240 --> 00:56:02,200
Let's see here. 
I don't know what the loading 

1092
00:56:02,200 --> 00:56:05,600
does Hippo. 
You can also highlight terms. 

1093
00:56:05,680 --> 00:56:07,960
Oh, I love this. 
Great. 

1094
00:56:08,120 --> 00:56:17,080
Let's see if I can do that. 
Go back so you can do insurance.

1095
00:56:17,440 --> 00:56:27,040
Oh, insurance equals our like. 
I think we also saw that you can

1096
00:56:27,040 --> 00:56:29,120
do regex too, which is pretty 
sweet. 

1097
00:56:29,120 --> 00:56:31,280
So I don't know if that term's 
in here. 

1098
00:56:31,280 --> 00:56:38,720
So let's do create. 
This is back. 

1099
00:56:39,760 --> 00:56:41,680
Yeah, I had to actually like 
force quit Chrome and 

1100
00:56:41,680 --> 00:56:47,760
everything. 
Oh wow sorry let's see we're 

1101
00:56:47,760 --> 00:56:51,000
just kind of I I showed off the 
main Astro site just letting 

1102
00:56:51,000 --> 00:56:53,800
people know. 
I didn't realize maybe this is 

1103
00:56:53,800 --> 00:56:56,680
true but maybe not. 
Firebase blog is built in the 

1104
00:56:56,680 --> 00:56:58,520
Astro now. 
It is. 

1105
00:56:58,520 --> 00:56:59,640
I think it's been a little 
while. 

1106
00:56:59,640 --> 00:57:03,120
Yeah, David E who works at 
Firebase is a is a really big 

1107
00:57:03,120 --> 00:57:08,760
Astro fan and another like big 
Google initiative IDX, which is 

1108
00:57:08,760 --> 00:57:12,880
their like cloud IDE thing 
they're working on there. 

1109
00:57:12,880 --> 00:57:14,840
They have like the whole 
beautiful landing page built in 

1110
00:57:14,840 --> 00:57:18,160
Astro as well. 
Very cool to see people like 

1111
00:57:18,160 --> 00:57:21,440
doing that. 
I was totally messing up this 

1112
00:57:22,440 --> 00:57:27,560
great example that I was given. 
Let's see there you go. 

1113
00:57:27,840 --> 00:57:30,480
So you can do highlights and 
create and I think we talked 

1114
00:57:30,480 --> 00:57:34,440
about like regex too. 
Let's see, you can add Starlight

1115
00:57:34,440 --> 00:57:37,640
to an existing Astrosite. 
Very cool. 

1116
00:57:37,720 --> 00:57:41,240
That's that's great to know. 
How about an existing spelt kit 

1117
00:57:41,240 --> 00:57:44,400
site? 
Just kidding, I'm sure I'm sure 

1118
00:57:44,400 --> 00:57:48,200
we could make it load honestly, 
but cool. 

1119
00:57:49,040 --> 00:57:51,800
What else do we want to show off
on this coding example so people

1120
00:57:51,800 --> 00:57:58,200
have a a decent start of this? 
Any other fun little Nuggets out

1121
00:57:58,200 --> 00:58:00,360
here? 
I guess we'll, I mean, we could 

1122
00:58:00,360 --> 00:58:03,240
turn on internationalization. 
Yeah, it's a. 

1123
00:58:03,840 --> 00:58:06,240
Great one. 
I think this is also something 

1124
00:58:06,240 --> 00:58:09,320
we do well. 
I don't want to say it seems a 

1125
00:58:09,320 --> 00:58:13,960
bit like, well, it's full to say
like I think we do well, but we 

1126
00:58:13,960 --> 00:58:16,800
have a lot of experience of I 
will say, because Astros docs 

1127
00:58:17,080 --> 00:58:21,000
has just invested a huge amount 
and has like a such a big 

1128
00:58:21,000 --> 00:58:23,440
community around its 
translations. 

1129
00:58:25,480 --> 00:58:28,040
So obviously this had to also 
support that. 

1130
00:58:28,040 --> 00:58:32,760
So Starlight comes 
out-of-the-box with like UI 

1131
00:58:32,760 --> 00:58:34,800
translation. 
So for all the like labeling, 

1132
00:58:34,800 --> 00:58:39,440
like you see like the auto, like
auto light dark for the theme 

1133
00:58:39,440 --> 00:58:43,480
picker or like the on this page,
table of contents, stuff like 

1134
00:58:43,480 --> 00:58:48,160
all these kinds of things, 
search, you know, all these, all

1135
00:58:48,160 --> 00:58:51,560
these things that need labeling 
that's kind of provided 

1136
00:58:51,560 --> 00:58:53,480
out-of-the-box in a bunch of 
languages. 

1137
00:58:53,480 --> 00:58:55,760
More, more languages actually 
than we are translated in for 

1138
00:58:55,760 --> 00:58:57,480
our docs. 
So docs are in like 12 or 

1139
00:58:57,480 --> 00:58:59,560
something. 
And I think I've, I've lost 

1140
00:58:59,560 --> 00:59:01,080
track. 
We're like 24 languages or 

1141
00:59:01,080 --> 00:59:04,080
something currently following 
the UI stuff and always open to 

1142
00:59:04,080 --> 00:59:05,920
PRS. 
It's if you want to get involved

1143
00:59:05,920 --> 00:59:09,080
like it's, it's, it's not like a
huge PR, right? 

1144
00:59:09,080 --> 00:59:11,280
You got to translate, I don't 
know, two dozen terms or 

1145
00:59:11,280 --> 00:59:14,200
something. 
And always happy to add new 

1146
00:59:14,200 --> 00:59:16,640
languages. 
So those come out-of-the-box. 

1147
00:59:16,640 --> 00:59:19,440
And we also have like good set 
up for getting that started. 

1148
00:59:19,440 --> 00:59:22,080
So I don't know if you want to 
add another language to to your 

1149
00:59:22,080 --> 00:59:24,400
doc site. 
Sure, there's also a suggestion 

1150
00:59:24,400 --> 00:59:25,560
for. 
You could add a title. 

1151
00:59:26,040 --> 00:59:27,760
I don't I don't know we could 
add a title. 

1152
00:59:28,320 --> 00:59:30,640
Oh, to the code, to the code 
snippet. 

1153
00:59:30,920 --> 00:59:32,240
Oh, to the code before we move 
on. 

1154
00:59:32,240 --> 00:59:33,120
Yeah, yeah. 
Sure. 

1155
00:59:34,040 --> 00:59:37,200
I don't recall, is that here? 
Title. 

1156
00:59:37,240 --> 00:59:42,840
Yeah, yes, title. 
How about remote code snippet? 

1157
00:59:43,080 --> 00:59:47,880
Something like that. 
Yeah, let's see this. 

1158
00:59:48,120 --> 00:59:49,480
There you go. 
Cool. 

1159
00:59:50,960 --> 00:59:53,120
And if you were automating that,
that could be like you could 

1160
00:59:53,120 --> 00:59:55,720
automatically grab the file name
from your request or something 

1161
00:59:55,720 --> 00:59:59,400
and put that in the title. 
Yeah, yeah, I'll, I'll have to 

1162
00:59:59,400 --> 01:00:01,000
look it up. 
It's during our build that we 

1163
01:00:01,000 --> 01:00:03,360
actually use it. 
So it's it's not something like 

1164
01:00:03,360 --> 01:00:05,880
we fetch or anything. 
Well, I mean, somebody's 

1165
01:00:05,880 --> 01:00:07,680
fetching it, but it's it's done 
automatically. 

1166
01:00:07,680 --> 01:00:09,560
So I'll look it up before we 
jump off. 

1167
01:00:10,240 --> 01:00:13,880
Nice, cool. 
So yeah, I think I could just 

1168
01:00:14,120 --> 01:00:15,880
copy this. 
It looks like because we really 

1169
01:00:15,880 --> 01:00:20,840
haven't changed much, right? 
You can, oh, I don't know if you

1170
01:00:20,840 --> 01:00:23,360
want to copy the whole thing is 
that that's going to copy like 

1171
01:00:23,720 --> 01:00:25,960
all like the whole config file. 
I guess we wanted to grab just 

1172
01:00:25,960 --> 01:00:27,880
that highlighted piece. 
We'll do that. 

1173
01:00:36,800 --> 01:00:42,000
This is so large now. 
OK, so we have social blah blah 

1174
01:00:42,000 --> 01:00:46,360
blah, probably below here, I'm 
guessing. 

1175
01:00:49,760 --> 01:00:55,360
So we used to looks right here 
taking over and so does this 

1176
01:00:55,360 --> 01:00:56,880
actually. 
Yeah, maybe walk through this 

1177
01:00:56,880 --> 01:00:58,120
real quick. 
Sure. 

1178
01:00:58,240 --> 01:01:02,720
Sorry, let me go back. 
Just as like, yeah, we're 

1179
01:01:02,720 --> 01:01:04,760
setting English as our default 
language. 

1180
01:01:06,280 --> 01:01:10,840
Oh, we might want to make one 
change because right now all of 

1181
01:01:10,840 --> 01:01:14,080
our files are in the root, like 
of the of the site where we 

1182
01:01:14,080 --> 01:01:15,640
don't have like any slash EN or 
anything. 

1183
01:01:16,360 --> 01:01:18,760
That's fine. 
If you want to keep that, we can

1184
01:01:18,760 --> 01:01:22,000
do that, but we'll need to tweak
the ITNN config here. 

1185
01:01:22,320 --> 01:01:25,040
OK. 
Or we can move them into an EN 

1186
01:01:25,040 --> 01:01:27,080
directory. 
Up to you, like whichever format

1187
01:01:27,080 --> 01:01:28,320
you prefer. 
Yeah. 

1188
01:01:28,720 --> 01:01:31,280
So I would probably leave the 
English just because I think a 

1189
01:01:31,280 --> 01:01:34,120
lot of people start out that way
and then add later. 

1190
01:01:34,160 --> 01:01:36,000
So I would probably leave it 
this way. 

1191
01:01:36,680 --> 01:01:40,880
So can we just date so that like
the Chinese version is in 

1192
01:01:40,880 --> 01:01:45,400
another directory? 
Exactly. 

1193
01:01:45,400 --> 01:01:47,680
So all we need to change in the 
config I think. 

1194
01:01:47,760 --> 01:01:48,920
Hopefully, hopefully I don't get
this wrong. 

1195
01:01:49,440 --> 01:01:52,880
Is where it says like EN like 
that object with label English. 

1196
01:01:53,280 --> 01:01:59,440
If we change that to instead of 
EN, we put a root like ROOT as 

1197
01:01:59,480 --> 01:02:05,120
the key and I think delete the 
default locale config. 

1198
01:02:06,360 --> 01:02:11,320
OK, just do that for now. 
Yeah, because it'll 

1199
01:02:11,320 --> 01:02:13,680
automatically assume you want 
the root locale to be the 

1200
01:02:13,680 --> 01:02:15,800
default. 
I think we could also put root 

1201
01:02:15,800 --> 01:02:17,640
in there, if I remember 
correctly, but it's not, it's 

1202
01:02:17,640 --> 01:02:20,040
not strictly speaking needed. 
And I think that should work. 

1203
01:02:20,040 --> 01:02:23,320
It should be like, OK, you have 
like English in the root and 

1204
01:02:23,320 --> 01:02:26,880
then we'll look for these other 
folders for for other languages.

1205
01:02:27,320 --> 01:02:31,880
OK, does that automatically 
create a drop down for language 

1206
01:02:31,880 --> 01:02:35,040
or no? 
Should reload yeah, should do 

1207
01:02:35,120 --> 01:02:39,480
any issue. 
I wonder if the dev server no it

1208
01:02:39,480 --> 01:02:42,200
should do it by itself 
something. 

1209
01:02:42,200 --> 01:02:47,240
Flowing up we did. 
We get something wrong here. 

1210
01:02:47,400 --> 01:02:51,960
OK, L dot root dot line does it 
need to be? 

1211
01:02:52,520 --> 01:02:54,440
Oh, yeah, right. 
OK, because it's a root 

1212
01:02:54,440 --> 01:02:56,040
language, we need to tell out 
the language. 

1213
01:02:56,320 --> 01:03:03,720
So then we do this. 
So like the yeah exactly Lang 

1214
01:03:03,720 --> 01:03:07,600
needs to be the Lang exactly 
like the Chinese example. 

1215
01:03:07,960 --> 01:03:15,960
Oh sorry gotcha. 
So is it do I do I take the EN? 

1216
01:03:16,080 --> 01:03:22,480
Do I leave the EN and then or do
I take this block out? 

1217
01:03:22,640 --> 01:03:25,280
You're right, but remove the. 
Remove the extra wrapping. 

1218
01:03:25,280 --> 01:03:25,840
Exactly. 
Yep. 

1219
01:03:26,000 --> 01:03:32,870
OK, perfect. 
I don't know why that's not 

1220
01:03:33,030 --> 01:03:40,910
formatting well, but whatever. 
Cool, let's that again. 

1221
01:03:43,710 --> 01:03:46,270
OK, now we have the job down. 
Oh, yeah. 

1222
01:03:46,470 --> 01:03:49,320
Cool. 
Oh, that's, that's interesting. 

1223
01:03:49,320 --> 01:03:51,440
I don't know why that character 
is on there. 

1224
01:03:51,560 --> 01:03:55,240
Oh, I probably didn't delete 
something, No. 

1225
01:03:56,240 --> 01:04:00,280
The. 
It's got like a extra Chinese 

1226
01:04:00,280 --> 01:04:03,640
symbol beside it. 
Oh, it's like the translation 

1227
01:04:03,640 --> 01:04:05,520
icon. 
Oh, is that what that is? 

1228
01:04:05,720 --> 01:04:06,320
I'm. 
Sorry. 

1229
01:04:06,640 --> 01:04:07,640
Yeah. 
Totally, totally. 

1230
01:04:07,640 --> 01:04:08,720
Should have known that. 
I guess. 

1231
01:04:08,760 --> 01:04:10,520
Interesting though, let's give 
feedback. 

1232
01:04:11,160 --> 01:04:15,360
I don't know, I don't know. 
Yeah, same as like the theme 

1233
01:04:15,360 --> 01:04:16,760
picker on the left. 
It has like an icon. 

1234
01:04:16,760 --> 01:04:18,880
But yeah, that's all. 
It makes sense that it's not 

1235
01:04:18,880 --> 01:04:22,520
clear. 
Yeah. 

1236
01:04:22,520 --> 01:04:26,240
So now you can switch between. 
Yeah, Atharva's actually someone

1237
01:04:26,240 --> 01:04:29,360
who's contributed to our 
translations into Hindi of the 

1238
01:04:29,360 --> 01:04:31,600
Astro docs and Starlight docs 
actually, so. 

1239
01:04:33,680 --> 01:04:39,920
Good work, thanks for the help. 
OK, so we basically that's like 

1240
01:04:39,920 --> 01:04:42,640
we have our our 
internationalized site ready to 

1241
01:04:42,640 --> 01:04:44,320
go. 
If you switch between languages,

1242
01:04:44,320 --> 01:04:47,840
you'll see the pages are already
there. 

1243
01:04:47,840 --> 01:04:52,240
Like if you're in the in the 
example on the dev server in the

1244
01:04:52,240 --> 01:04:55,040
browser, you'll you'll see like 
we can switch already to like 

1245
01:04:55,160 --> 01:04:58,400
Chinese for example and it'll 
show as a page. 

1246
01:04:58,480 --> 01:05:03,120
It like automatically uses the 
default language as a as 

1247
01:05:03,120 --> 01:05:05,960
fullback content. 
Basically because our default's 

1248
01:05:05,960 --> 01:05:08,440
English, we can't necessarily 
read the the the notice there. 

1249
01:05:08,440 --> 01:05:10,760
But basically it's saying like 
this content's not available in 

1250
01:05:10,760 --> 01:05:13,320
your language yet, just as a 
little notice. 

1251
01:05:13,600 --> 01:05:15,840
So it's not totally weird to 
someone that they're, hey, I 

1252
01:05:15,840 --> 01:05:16,920
thought I chose Chinese. 
Why? 

1253
01:05:17,040 --> 01:05:21,960
Why is it the whole English? 
But this is a pattern we used in

1254
01:05:21,960 --> 01:05:25,760
the Astro docs a lot because 
especially for open source, you 

1255
01:05:25,760 --> 01:05:27,800
probably don't have the 
resources to go ahead and 

1256
01:05:27,800 --> 01:05:30,760
translate all your docs like day
one. 

1257
01:05:30,760 --> 01:05:33,440
Like you, you might have like 
someone in house who's like 

1258
01:05:33,440 --> 01:05:39,680
speaks a language and and like 
has translated a couple of 

1259
01:05:39,680 --> 01:05:42,000
pages, but you probably aren't 
able to translate everything, 

1260
01:05:42,360 --> 01:05:46,440
especially like stuff updates. 
So we found this is the model 

1261
01:05:46,440 --> 01:05:48,840
that works really well. 
Like you add a new page, it's 

1262
01:05:48,840 --> 01:05:50,200
fine. 
You add it in English maybe, or 

1263
01:05:50,200 --> 01:05:51,600
like whatever your primary 
language is. 

1264
01:05:52,280 --> 01:05:55,640
And then like people as as they 
have time can translate that. 

1265
01:05:55,640 --> 01:05:57,760
And in the meantime, the the 
site still works. 

1266
01:05:57,760 --> 01:05:58,840
It's not just full of broken 
links. 

1267
01:05:59,400 --> 01:06:01,960
That's a great way to look at. 
I'll bring that back to to work 

1268
01:06:01,960 --> 01:06:04,520
as well as something that we can
look into 'cause I think we're 

1269
01:06:04,520 --> 01:06:07,880
looking to move to four dot O or
4 something soon. 

1270
01:06:09,760 --> 01:06:14,120
So when you do this, if I'd say 
I wanted to update example 

1271
01:06:14,120 --> 01:06:19,360
reference in Chinese, would I 
Would I create a new directory 

1272
01:06:19,360 --> 01:06:22,280
then? 
Yeah, and the docs folder. 

1273
01:06:23,040 --> 01:06:29,240
OK, docs, Yeah, docs. 
We create ours as at HCN. 

1274
01:06:31,360 --> 01:06:33,600
I think lowercase because that's
the key there. 

1275
01:06:33,760 --> 01:06:35,560
Oh, sorry. 
Yeah. 

1276
01:06:37,720 --> 01:06:40,240
So it doesn't match. 
Oh, I'm sorry. 

1277
01:06:40,240 --> 01:06:42,240
I know I should match the key 
rather than the language. 

1278
01:06:42,240 --> 01:06:44,440
There's a few little with ITN. 
There's a lot of these tricky 

1279
01:06:44,440 --> 01:06:48,880
things like I was just. 
Totally at the wrong spot and so

1280
01:06:48,880 --> 01:06:52,200
do we directly like just copy 
like this entire reference 

1281
01:06:52,200 --> 01:06:53,880
folder to start? 
Is that OK? 

1282
01:06:54,040 --> 01:06:56,640
Yeah, but that works. 
If we copy the reference, it's 

1283
01:06:56,640 --> 01:06:59,480
going to have that relative path
to our component that we 

1284
01:06:59,480 --> 01:07:02,880
imported, which is going to be 
wrong because we're like, that's

1285
01:07:02,880 --> 01:07:05,080
where aliases and stuff could 
come in handy, where we could 

1286
01:07:05,080 --> 01:07:06,080
set one of those up. 
But I. 

1287
01:07:07,400 --> 01:07:11,960
Think that will work? 
Yeah, so the warning went away. 

1288
01:07:11,960 --> 01:07:13,920
Obviously the content's still 
not translated. 

1289
01:07:15,320 --> 01:07:18,000
So if we do, I think I'm on this
one, right. 

1290
01:07:18,000 --> 01:07:19,040
Example reference. 
Yeah. 

1291
01:07:19,040 --> 01:07:26,680
So so this could actually change
to something like that and then 

1292
01:07:26,680 --> 01:07:27,920
it shows up. 
Perfect. 

1293
01:07:28,480 --> 01:07:29,000
Cool. 
Exactly. 

1294
01:07:30,160 --> 01:07:34,200
It's really neat that that must 
be difficult in a doc. 

1295
01:07:34,200 --> 01:07:36,440
Say, I haven't done a lot of 
internationalization. 

1296
01:07:36,440 --> 01:07:39,120
I have to keep up with like 
every time you introduce 

1297
01:07:39,120 --> 01:07:41,920
something, are you guys running 
like a GitHub action or 

1298
01:07:41,920 --> 01:07:44,600
something like that to say, oh, 
we don't have these seven other 

1299
01:07:44,600 --> 01:07:47,040
languages now, Is it a warning 
for you guys? 

1300
01:07:47,040 --> 01:07:51,520
How do you handle that? 
Yeah, we actually have a whole 

1301
01:07:52,040 --> 01:07:54,200
Hey, you want to see another 
another site built with 

1302
01:07:54,200 --> 01:07:58,000
Starlight? 
Sure, I think it's wait, let me 

1303
01:07:59,440 --> 01:08:02,600
make sure I get the URL correct.
Yeah, I'll copy paste this over 

1304
01:08:02,600 --> 01:08:07,680
in Stream Yard. 
This is a tool called Lunaria, 

1305
01:08:10,080 --> 01:08:12,880
which is also like. 
It's another a bit like the 

1306
01:08:12,880 --> 01:08:14,200
expressive code that we showed 
off. 

1307
01:08:14,200 --> 01:08:16,279
A bit like Starlight. 
It's another thing that sprung 

1308
01:08:16,279 --> 01:08:19,200
out of our own. 
It pretty much matches your the 

1309
01:08:19,279 --> 01:08:21,120
color scheme you picked. 
That's what I was just going to 

1310
01:08:21,160 --> 01:08:23,120
say. 
Like I feel like it's even my 

1311
01:08:23,120 --> 01:08:25,840
browser is purple. 
Everything is purple, just like 

1312
01:08:25,840 --> 01:08:27,160
I like it. 
That's awesome. 

1313
01:08:30,439 --> 01:08:34,319
Lunaria like we a while back had
like some custom scripts in our 

1314
01:08:34,319 --> 01:08:36,920
Astro docs repo for sort of 
managing those kinds of things. 

1315
01:08:37,960 --> 01:08:40,960
And this isn't it's still early 
days project in some ways Lunari

1316
01:08:40,960 --> 01:08:44,560
like it's kind of adapting those
to be more widely usable, but 

1317
01:08:45,040 --> 01:08:49,319
starting to get picked up. 
Like I think we just saw the V 

1318
01:08:49,319 --> 01:08:51,120
press. 
I think like their or V or V 

1319
01:08:51,120 --> 01:08:54,560
press or one of those is using 
this now for their docs 

1320
01:08:54,560 --> 01:08:56,080
translations. 
I think they they have docs in 

1321
01:08:56,080 --> 01:09:00,720
English and Chinese. 
And basically what this does is 

1322
01:09:01,080 --> 01:09:05,479
uses your Git, you'll get data 
to like produce a kind of map of

1323
01:09:05,479 --> 01:09:07,880
your content, what's up up to 
date, what's what's not. 

1324
01:09:10,240 --> 01:09:14,439
I can if you go to ITNNI don't 
think there's an example of what

1325
01:09:14,439 --> 01:09:16,840
this looks like on here. 
So if you go to ITN dot 

1326
01:09:16,840 --> 01:09:20,960
Starlight, yeah, just stick ITN 
dot in front of that. 

1327
01:09:20,960 --> 01:09:26,160
Maybe ITN dot Starlight dot 
Astro .0 Yeah, maybe you find 

1328
01:09:26,160 --> 01:09:28,520
it. 
Oh, that's just that. 

1329
01:09:28,520 --> 01:09:31,600
Now we want like ITN dot 
Starlight dot Astro dot build. 

1330
01:09:31,600 --> 01:09:33,840
So you might have to type it. 
I I don't know if we even index 

1331
01:09:33,840 --> 01:09:37,240
that because it's kind of like 
internal, but that's Starlight 

1332
01:09:37,240 --> 01:09:41,600
dot Astro dot build that, that 
yeah that. 

1333
01:09:42,120 --> 01:09:43,319
OK, so this is what it looks 
like. 

1334
01:09:43,359 --> 01:09:47,160
Wow, nice. 
So it generates this dashboard 

1335
01:09:47,160 --> 01:09:48,479
gives you like translation 
progress. 

1336
01:09:48,479 --> 01:09:51,080
So here's the Lunario, 
completely translated. 

1337
01:09:51,800 --> 01:09:54,840
Lunario's doing this is that you
like giving you. 

1338
01:09:54,840 --> 01:09:58,080
This exactly. 
Yeah, we run, yeah, we run it 

1339
01:09:58,080 --> 01:10:00,600
like every time we deploy the 
dock site, like when we merge 

1340
01:10:00,600 --> 01:10:04,760
APR or whatever, we redeploy 
this dashboard so we can, we can

1341
01:10:04,760 --> 01:10:06,760
see like what the update status 
is. 

1342
01:10:06,800 --> 01:10:10,440
Contributors can like come and 
find pages to translate. 

1343
01:10:10,440 --> 01:10:12,360
Like they can see like, oh, this
page needs updating. 

1344
01:10:14,000 --> 01:10:15,360
You get an overview of all your 
content. 

1345
01:10:15,760 --> 01:10:17,680
We have a version of this for 
the Astro Dock site as well, 

1346
01:10:17,680 --> 01:10:20,640
which looks even crazier because
we have like, I don't know, like

1347
01:10:20,640 --> 01:10:24,440
100 pages or whatever. 
So that's a lot of content to 

1348
01:10:24,440 --> 01:10:26,760
stay on top of. 
And amazingly, we still have 

1349
01:10:26,760 --> 01:10:29,280
like, you know, open source 
contributors translating all of 

1350
01:10:29,280 --> 01:10:30,360
that. 
Like we have the languages where

1351
01:10:30,360 --> 01:10:33,960
like the full, like hundreds of 
pages are translated. 

1352
01:10:33,960 --> 01:10:38,480
So this is available as well for
people who, who need that kind 

1353
01:10:38,480 --> 01:10:40,680
of thing. 
And I think it's going to have 

1354
01:10:40,920 --> 01:10:43,560
this is that's that's not ready 
yet, but there's going to be 

1355
01:10:43,560 --> 01:10:45,560
like a GitHub action like you 
asked them will like comment on 

1356
01:10:45,560 --> 01:10:48,760
APR and be like, hey, by the 
way, this PR like will out like 

1357
01:10:48,760 --> 01:10:51,320
make these languages out of date
or like updates these files and 

1358
01:10:51,960 --> 01:10:54,200
that kind of stuff. 
That's really cool. 

1359
01:10:55,320 --> 01:10:57,720
It's super cool to see that it's
becoming more widely available. 

1360
01:10:57,720 --> 01:10:59,880
I've I've so many things to 
bring back to work. 

1361
01:10:59,920 --> 01:11:01,200
It's it's kind of amazing. 
Oh. 

1362
01:11:02,760 --> 01:11:03,920
Great. 
That's really, really great. 

1363
01:11:04,000 --> 01:11:08,720
To hear, I think so we have, I 
don't know about 2018 19 minutes

1364
01:11:08,720 --> 01:11:11,520
left. 
The only other thing I'd love to

1365
01:11:11,520 --> 01:11:15,640
do is, and this is maybe more of
an Astra thing than a Starlight 

1366
01:11:15,640 --> 01:11:17,920
thing. 
So if you, if you don't have 

1367
01:11:17,920 --> 01:11:19,280
anything else, let me ask that 
first. 

1368
01:11:19,280 --> 01:11:21,360
Is there anything you're dying 
to show off? 

1369
01:11:22,640 --> 01:11:23,960
Are you going to suggest a 
component? 

1370
01:11:24,200 --> 01:11:29,160
Yeah, not not even spell 
necessarily, just even like a 

1371
01:11:29,160 --> 01:11:31,800
web component. 
Any any type of like component 

1372
01:11:31,800 --> 01:11:33,840
would be really cool. 
Yeah. 

1373
01:11:35,760 --> 01:11:37,640
Well, let's do spell just 
because we like we kind of have 

1374
01:11:37,640 --> 01:11:39,480
built the component already. 
Like we, right, we built an 

1375
01:11:39,480 --> 01:11:41,640
Astro component to do our remote
code fetching. 

1376
01:11:41,960 --> 01:11:43,320
That all happens at build time, 
right. 

1377
01:11:43,320 --> 01:11:47,120
Like the fetch happens it's like
once efficiently and then like 

1378
01:11:47,120 --> 01:11:49,200
you're just building serving 
that static content later. 

1379
01:11:49,200 --> 01:11:53,320
So we've we've kind of showed 
that off and I think it could be

1380
01:11:53,320 --> 01:11:56,200
cool to show like asphalt if 
that's what you prefer. 

1381
01:11:56,200 --> 01:11:57,320
I like don't really have a 
preference. 

1382
01:11:57,320 --> 01:11:59,560
So yeah, we can do that. 
Sounds good. 

1383
01:12:00,240 --> 01:12:03,120
Do you want me to bring up the 
docs or just kind of go for it? 

1384
01:12:04,120 --> 01:12:06,680
I can I can probably guide you. 
I think awesome. 

1385
01:12:06,960 --> 01:12:09,720
I love. 
That answer, so I assume we're 

1386
01:12:09,720 --> 01:12:12,640
going to PMPM installs felt to 
get started or no? 

1387
01:12:14,040 --> 01:12:17,400
Almost, but we have like a more 
helpful little tool we can use. 

1388
01:12:17,960 --> 01:12:26,760
So if you run, yeah, nice. 
If you run PNPM Astro add 

1389
01:12:28,440 --> 01:12:37,710
exactly and svelt, there you go.
So it's going to ask you like do

1390
01:12:37,710 --> 01:12:39,750
you want to install svelt? 
And the answer is. 

1391
01:12:39,990 --> 01:12:45,550
Yep. 
Oh interesting they svelt is it 

1392
01:12:45,550 --> 01:12:49,790
doing? 
Oh, it's Astros 5 but Svelts 

1393
01:12:49,790 --> 01:12:51,470
4.2. 
Right. 

1394
01:12:51,510 --> 01:12:55,080
So the Astro one is like the 
Astro like in between glue or 

1395
01:12:55,080 --> 01:12:58,320
whatever and that we need and 
then Svelte itself is getting 

1396
01:12:58,320 --> 01:13:01,200
installed and now it's asking if
you want to add a config file 

1397
01:13:01,200 --> 01:13:03,480
for Svelte. 
Which so it looks like it 

1398
01:13:03,640 --> 01:13:08,240
updated the import first felt 
and just dropped it in. 

1399
01:13:09,480 --> 01:13:11,760
So it's going to add that to our
Astro config file. 

1400
01:13:11,760 --> 01:13:16,680
And so that's set up spell to be
like used so that your Astro 

1401
01:13:16,680 --> 01:13:19,640
project would understand like 
dot spell files and stuff like 

1402
01:13:19,640 --> 01:13:21,160
that. 
Cool, love it. 

1403
01:13:22,640 --> 01:13:25,080
And now you should be able to 
create spell component. 

1404
01:13:25,120 --> 01:13:28,360
You're going to have to drive 
that a little bit more than me, 

1405
01:13:28,360 --> 01:13:31,040
because it's been a while since 
I like use this use made, made a

1406
01:13:31,040 --> 01:13:32,760
spell component, but should 
work. 

1407
01:13:33,480 --> 01:13:35,080
Should work like any spell 
component anywhere. 

1408
01:13:35,880 --> 01:13:39,040
So let's do, let's do an easy 
one so I can put it in 

1409
01:13:39,040 --> 01:13:41,360
components, correct? 
Yeah. 

1410
01:13:41,480 --> 01:13:43,440
You could put it anywhere like 
we created that folder because 

1411
01:13:43,440 --> 01:13:46,360
it's kind of nice way to keep 
things organized, but there's no

1412
01:13:46,360 --> 01:13:49,680
real rules. 
Do a high button that's spelled.

1413
01:13:50,760 --> 01:13:54,640
See how this goes? 
So it's felt you can do script 

1414
01:13:54,640 --> 01:14:00,240
and then Wang equals TS if you 
want TypeScript or not just 

1415
01:14:00,240 --> 01:14:05,680
depends. 
We can do something like just do

1416
01:14:08,200 --> 01:14:14,120
whatever this equals hello and 
then we'll create a new button 

1417
01:14:15,160 --> 01:14:18,240
and that buttons text will have 
hello. 

1418
01:14:18,680 --> 01:14:22,360
It's kind of silly. 
There should be text, a little 

1419
01:14:22,360 --> 01:14:27,440
less confusing there. 
And this is completely incorrect

1420
01:14:27,440 --> 01:14:29,280
because I'm used to using a 
component. 

1421
01:14:31,280 --> 01:14:35,520
There's there's kind of it's 
felt component of Hello. 

1422
01:14:35,520 --> 01:14:39,200
And then we can do some onclick 
actions to make it actually 

1423
01:14:39,200 --> 01:14:45,640
useful. 
So you can do onclick and then 

1424
01:14:45,640 --> 01:14:54,360
we can do something like 
construction click handler of 

1425
01:14:54,360 --> 01:15:06,480
some sort and drop this into the
click and what we'll do is 

1426
01:15:06,480 --> 01:15:16,550
update text, something like that
maybe. 

1427
01:15:20,310 --> 01:15:23,910
Roll wise, Yep. 
Oops, equals. 

1428
01:15:24,760 --> 01:15:31,080
All right, That theoretically 
should work, and then we can put

1429
01:15:31,080 --> 01:15:34,600
that inside of. 
I don't know the index file for 

1430
01:15:34,600 --> 01:15:35,960
now. 
Is that good enough? 

1431
01:15:35,960 --> 01:15:37,800
Maybe. 
Sure, Yeah, it doesn't really 

1432
01:15:37,800 --> 01:15:40,920
matter where that works. 
So another imports. 

1433
01:15:40,920 --> 01:15:43,920
Again, remember we're in an MBX 
file, so we're not in the front 

1434
01:15:43,920 --> 01:15:48,560
matter like we were at Astro. 
We'll jump down here to import. 

1435
01:15:50,280 --> 01:15:53,120
I was just complaining about 
this on stream yesterday that we

1436
01:15:53,120 --> 01:15:54,800
should have always done our 
modules first. 

1437
01:15:54,960 --> 01:16:02,680
It drives me crazy. 
Yeah, the MDX is kind of weird 

1438
01:16:02,680 --> 01:16:05,400
because you can kind of like 
import anywhere in them, right? 

1439
01:16:05,400 --> 01:16:08,080
Like you could have that import 
halfway down the page, but then 

1440
01:16:08,200 --> 01:16:11,000
if you need the component like 
higher up the page somewhere, I 

1441
01:16:11,000 --> 01:16:13,200
think that actually still works 
because I think MDX kind of 

1442
01:16:13,840 --> 01:16:16,120
reorders everything probably at 
some point during the build, but

1443
01:16:16,120 --> 01:16:22,480
like kind of weird. 
Same make this actually look 

1444
01:16:22,480 --> 01:16:25,600
like a something else. 
All right, so let's see, did I 

1445
01:16:25,600 --> 01:16:28,440
blow anything up? 
It looks like it's not good. 

1446
01:16:29,600 --> 01:16:34,600
And get into our doc site. 
Next steps. 

1447
01:16:34,600 --> 01:16:36,520
OK, we got a button. 
So we have a button. 

1448
01:16:36,560 --> 01:16:40,600
So this is our classic Astro 
like example, right? 

1449
01:16:40,600 --> 01:16:43,640
Like you've created an 
interactive component and it's 

1450
01:16:43,640 --> 01:16:46,320
not interactive, right? 
Correct. 

1451
01:16:46,320 --> 01:16:48,360
So when I click it doesn't 
interact? 

1452
01:16:48,440 --> 01:16:51,280
Yep. 
Yeah, so one of like Astros kind

1453
01:16:51,280 --> 01:16:54,440
of superpowers, but also maybe 
can trip you up is that it can 

1454
01:16:54,440 --> 01:16:56,880
take any of these framework 
components, so like React or 

1455
01:16:56,880 --> 01:17:01,720
view as well and then render 
them out to plain HTML and no JS

1456
01:17:01,720 --> 01:17:04,040
whatsoever. 
Like if that's what you need, 

1457
01:17:04,040 --> 01:17:05,200
right. 
Like sometimes you might have a 

1458
01:17:05,200 --> 01:17:07,560
really nice react component that
you found that like lays out 

1459
01:17:07,560 --> 01:17:11,040
your design, like has the right 
styles and looks great, but 

1460
01:17:11,040 --> 01:17:12,880
doesn't have any interactivity 
whatsoever. 

1461
01:17:12,880 --> 01:17:14,720
And so you don't need that to be
shipped to the client. 

1462
01:17:14,720 --> 01:17:16,880
You don't need the client to be 
able to re re re render that 

1463
01:17:17,160 --> 01:17:19,800
component at all. 
And so like that's the default 

1464
01:17:19,800 --> 01:17:22,600
behavior node JS, no 
interactivity, just the 

1465
01:17:22,640 --> 01:17:26,840
component mock up and styles. 
So we're going to want to like 

1466
01:17:26,920 --> 01:17:32,120
stick a little directive on the 
button, which is client colon. 

1467
01:17:35,040 --> 01:17:36,600
And then we can pick a few 
things here. 

1468
01:17:36,600 --> 01:17:39,480
Let's just use load for now. 
Client load. 

1469
01:17:39,680 --> 01:17:42,400
So basically this is telling 
Astra like when do you want the 

1470
01:17:42,400 --> 01:17:44,400
code for this to load? 
And we have a, we have a few 

1471
01:17:44,400 --> 01:17:46,480
with like client visible, for 
example. 

1472
01:17:46,480 --> 01:17:48,520
So maybe you have a component in
your footer and you're like, 

1473
01:17:48,760 --> 01:17:51,960
hey, don't bother loading that 
that JS until someone scrolls 

1474
01:17:51,960 --> 01:17:55,160
down and actually needs it. 
And client loads the kind of 

1475
01:17:55,160 --> 01:17:57,440
basic one like page loads load 
the JS right away. 

1476
01:17:58,080 --> 01:18:02,600
All right, so now we reload. 
There's your Hello world. 

1477
01:18:03,440 --> 01:18:06,080
Perfect. 
I should have done something 

1478
01:18:06,080 --> 01:18:09,320
fancier, but there's there's 
hello at the beginning and then 

1479
01:18:09,320 --> 01:18:11,440
I click and it goes to Hello 
world. 

1480
01:18:13,800 --> 01:18:17,960
The the great part about that, I
think, in my opinion, is that 

1481
01:18:17,960 --> 01:18:21,320
you're keeping like your bundle 
sizes small and and stuff like 

1482
01:18:21,360 --> 01:18:27,080
that. 
So OK, so a little bit of wrap 

1483
01:18:27,080 --> 01:18:29,640
up here. 
Is there is there anything else 

1484
01:18:29,640 --> 01:18:33,080
that we might have missed that 
we should show off I'm. 

1485
01:18:37,080 --> 01:18:40,160
Trying to think so obviously 
like we've kind of looked at 

1486
01:18:40,160 --> 01:18:42,040
some of the technical details. 
We haven't really looked at like

1487
01:18:42,040 --> 01:18:45,080
the authoring experience so 
much, which is maybe kind of 

1488
01:18:45,080 --> 01:18:49,120
important for for docs. 
Maybe we could take a quick look

1489
01:18:49,120 --> 01:18:52,520
at the components docs page in 
Starlight just to look at some 

1490
01:18:52,520 --> 01:18:54,560
of the stuff that's built in. 
I like that. 

1491
01:19:01,120 --> 01:19:04,240
I think Chris and I might have a
little lag, so bear with us 

1492
01:19:04,240 --> 01:19:18,000
here. 
Chris, if you, if you can hear 

1493
01:19:18,000 --> 01:19:20,440
me, do you want to jump out and 
back in again? 

1494
01:19:20,560 --> 01:19:23,040
I think we're out of sync a 
little bit. 

1495
01:19:27,320 --> 01:19:33,360
I think once once Chris comes 
back, we'll walk through that a 

1496
01:19:33,360 --> 01:19:35,080
little more. 
I'm kind of curious, some of the

1497
01:19:35,080 --> 01:19:40,360
comments here. 
Oh, very cool. 

1498
01:19:40,640 --> 01:19:42,520
Both have the same story. 
Devs. 

1499
01:19:42,880 --> 01:19:45,400
Devs asked us how they could use
them in their own projects. 

1500
01:19:45,440 --> 01:19:50,680
That's awesome. 
Sarah says so many projects came

1501
01:19:50,680 --> 01:19:53,960
out of Astro docks because 
people wanted what we'd custom 

1502
01:19:53,960 --> 01:19:55,880
built. 
Expressive code and area. 

1503
01:19:57,120 --> 01:19:59,520
Kevin's get hub co-author. 
Wow yeah. 

1504
01:19:59,880 --> 01:20:02,760
That's amazing to see. 
Like such community support 

1505
01:20:02,760 --> 01:20:04,800
surrounding Astro. 
It's always been a huge part of 

1506
01:20:04,800 --> 01:20:08,200
it. 
Same thought. 

1507
01:20:10,240 --> 01:20:12,440
Starlight Blog. 
How interesting. 

1508
01:20:14,120 --> 01:20:17,000
So we can't forget the Starlight
blog. 

1509
01:20:17,840 --> 01:20:22,480
Oh yeah, so I don't know if did 
you hear me when I talked about 

1510
01:20:22,480 --> 01:20:25,600
components. 
No, I, well, I didn't, I, I 

1511
01:20:25,600 --> 01:20:29,400
don't know that anybody did. 
So I I jumped to the components 

1512
01:20:29,400 --> 01:20:31,200
page and that's kind of where we
left off. 

1513
01:20:32,040 --> 01:20:34,160
OK, sweet. 
Yeah, I just wanted to like 

1514
01:20:34,160 --> 01:20:36,560
quickly run down some of like 
the built in stuff we have here.

1515
01:20:38,640 --> 01:20:41,680
These are things that kind of 
common basically like common 

1516
01:20:41,680 --> 01:20:43,400
components you're going to need 
for doc site, right. 

1517
01:20:43,400 --> 01:20:47,720
So we have like a tabs component
that allows you to show, for 

1518
01:20:47,720 --> 01:20:49,880
example, like code snippets in 
multiple languages. 

1519
01:20:49,880 --> 01:20:53,120
If you have like you know, or 
are we've kind of seen them in 

1520
01:20:53,120 --> 01:20:56,880
action already with like the 
PNPMNPM yarn like install 

1521
01:20:56,880 --> 01:20:58,680
instructions where you want to 
show a bunch of them. 

1522
01:20:59,120 --> 01:21:02,680
I always say like my, my rule of
thumb is like tabs are for 

1523
01:21:02,880 --> 01:21:08,160
equivalent content, not for lots
of content that you want to 

1524
01:21:08,160 --> 01:21:10,720
hide. 
Like sometimes people are like, 

1525
01:21:10,720 --> 01:21:13,040
oh, but you could have like 2 
files and like, it's like, well,

1526
01:21:13,040 --> 01:21:15,760
if someone might want to look at
both of those files and they're 

1527
01:21:15,760 --> 01:21:18,640
in set tabs, you kind of, you 
know, that's kind of annoying 

1528
01:21:18,640 --> 01:21:20,880
for them. 
So it's for content that like 

1529
01:21:21,080 --> 01:21:24,280
someone only needs one of 
that's, that's my rule of thumb.

1530
01:21:25,200 --> 01:21:28,040
Then we have cards for which 
we've kind of seen on the 

1531
01:21:28,040 --> 01:21:30,120
landing page. 
So like for calling out, calling

1532
01:21:30,120 --> 01:21:34,280
attention to like a grid of 
features or something like that,

1533
01:21:36,480 --> 01:21:37,720
There you go, you can add an 
icon. 

1534
01:21:38,920 --> 01:21:40,840
The homepage has a stagger 
effect on the grid. 

1535
01:21:40,840 --> 01:21:42,440
So like they're kind of 
asymmetrical. 

1536
01:21:42,440 --> 01:21:46,000
As well. 
Yes, that's true kind of the. 

1537
01:21:46,600 --> 01:21:50,600
There you go. 
We have link cards. 

1538
01:21:50,600 --> 01:21:54,760
So again, want to show off like 
a link to we usually sometimes 

1539
01:21:54,760 --> 01:21:57,760
in the docs for and the Astro 
docs for like, Hey, you like get

1540
01:21:57,760 --> 01:21:59,640
to the end of the section, but 
you want to like share some 

1541
01:21:59,760 --> 01:22:02,200
related content like hey, what's
what's what should I look? 

1542
01:22:02,200 --> 01:22:04,960
What should I read next on like 
link out to a few other pages? 

1543
01:22:05,840 --> 01:22:08,640
So those are handy and we've 
already seen the code. 

1544
01:22:08,640 --> 01:22:11,120
And the icon is also just like 
it's an icon component. 

1545
01:22:11,120 --> 01:22:14,800
It's not super powerful compared
to maybe many. 

1546
01:22:14,800 --> 01:22:16,960
It's kind of limited in the 
number of icons we have. 

1547
01:22:18,800 --> 01:22:21,040
Oh, you wanted to add? 
This is reminding me you wanted 

1548
01:22:21,040 --> 01:22:22,920
to add like all your social 
media links, right? 

1549
01:22:23,600 --> 01:22:25,720
Oh yeah. 
We might be up on time though, 

1550
01:22:25,720 --> 01:22:29,160
so let's let's just go through. 
And I think we talked quite a 

1551
01:22:29,160 --> 01:22:32,080
bit about the code piece too. 
So yes. 

1552
01:22:32,080 --> 01:22:35,040
Definitely we did. 
So yeah, the icon, the icon 

1553
01:22:35,040 --> 01:22:37,320
components are also used in the 
social media links if you wanted

1554
01:22:37,320 --> 01:22:39,160
to add those in your config. 
Got you. 

1555
01:22:39,720 --> 01:22:42,720
Cool. 
Yeah, Yeah, I don't know. 

1556
01:22:42,720 --> 01:22:44,240
We have 8 minutes. 
Let's see how. 

1557
01:22:44,240 --> 01:22:45,600
Let's see if we can knock that 
out. 

1558
01:22:46,360 --> 01:22:48,080
So. 
Should be should be easy and 

1559
01:22:48,080 --> 01:22:49,320
simple. 
That's that's designed to be 

1560
01:22:49,320 --> 01:22:51,160
that way. 
So like hopefully it works. 

1561
01:22:55,240 --> 01:22:58,120
So can we go into config and do 
like Mastodon? 

1562
01:22:58,120 --> 01:22:59,800
Is that? 
Yeah. 

1563
01:23:00,480 --> 01:23:01,960
Nice. 
What? 

1564
01:23:01,960 --> 01:23:03,800
What? 
What is Chris's Mastodon? 

1565
01:23:03,800 --> 01:23:05,320
He sent it to me. 
Should I look it up? 

1566
01:23:06,480 --> 01:23:08,200
Yeah, I guess you don't. 
You don't have Mastodon. 

1567
01:23:08,240 --> 01:23:11,240
Come on. 
I do, I do, I, I have to have 

1568
01:23:11,240 --> 01:23:12,960
them all right? 
Otherwise I can't talk with 

1569
01:23:12,960 --> 01:23:19,560
everybody. 
I I Hatcher is like, right here.

1570
01:23:19,560 --> 01:23:23,560
Where'd it go, Chris? 
It's on our page. 

1571
01:23:23,560 --> 01:23:25,760
That was that was built for this
episode. 

1572
01:23:26,320 --> 01:23:31,080
Here we go. 
So we can put in that. 

1573
01:23:31,160 --> 01:23:38,080
Oops, I got all sorts of weird. 
All right. 

1574
01:23:39,120 --> 01:23:43,320
So this should show up down at 
the bottom, is that right? 

1575
01:23:43,600 --> 01:23:46,880
Top, top, Top in the. 
In the right here, there we go. 

1576
01:23:47,360 --> 01:23:49,640
So now we have the cool Mastodon
boop. 

1577
01:23:50,720 --> 01:23:55,120
And so you're actually using 
those those built in links or 

1578
01:23:55,120 --> 01:23:58,960
sorry, built in icon components 
when using those, correct? 

1579
01:23:59,320 --> 01:24:01,040
Exactly. 
So if you look at the grid, it 

1580
01:24:01,040 --> 01:24:04,440
does like grid there of 
different services that we have 

1581
01:24:04,440 --> 01:24:07,000
like stuff there. 
So you could you could add your 

1582
01:24:07,120 --> 01:24:09,960
we have Twitter and X just in 
case anyone needs the OG logo. 

1583
01:24:12,200 --> 01:24:15,920
It still drives me crazy. 
Such a great branding that 

1584
01:24:15,920 --> 01:24:19,120
they've destroyed. 
It's crazy. 

1585
01:24:19,440 --> 01:24:23,040
Yeah, sorry, the Starlight blog.
Before I forget, let's let's 

1586
01:24:23,040 --> 01:24:25,840
share that on. 
Yeah. 

1587
01:24:26,080 --> 01:24:30,760
So if you jump to in the sidebar
of the docs, there's a section 

1588
01:24:30,760 --> 01:24:34,440
called Resources and then like 
plugins and integrations. 

1589
01:24:36,120 --> 01:24:39,040
So this is linked to mostly 
community plugins. 

1590
01:24:40,120 --> 01:24:44,080
So we have like Typedoc support,
for example, Like for the people

1591
01:24:44,080 --> 01:24:46,600
who want to generate from your 
TypeScript code base, want to 

1592
01:24:46,600 --> 01:24:50,560
generate pages, it's built by. 
Actually, most of these are 

1593
01:24:50,560 --> 01:24:56,640
built by one really amazing 
contributor and the the blog 

1594
01:24:56,640 --> 01:25:00,760
piece as well is the same same 
contributor who built that out. 

1595
01:25:01,080 --> 01:25:04,200
So basically the idea is like, 
hey, you, you want to add a blog

1596
01:25:04,200 --> 01:25:07,440
to your Starlight site. 
This would allow you to do that.

1597
01:25:07,440 --> 01:25:11,040
So you can like share your 
updates or whatever your 

1598
01:25:11,040 --> 01:25:15,200
development log or whatever it 
is you want to add to. 

1599
01:25:15,400 --> 01:25:17,240
Like that's not something that 
we've had to do with Astro 

1600
01:25:17,240 --> 01:25:20,040
because like we have our own 
like whole Astro site with a 

1601
01:25:20,040 --> 01:25:22,680
blog and blah, blah, blah. 
But if you if you're just like a

1602
01:25:22,680 --> 01:25:24,600
small open source project, you 
probably don't want like a 

1603
01:25:24,600 --> 01:25:26,280
second site and they have to 
build that separately. 

1604
01:25:26,280 --> 01:25:29,720
So this is a plug in some simple
config options. 

1605
01:25:30,400 --> 01:25:34,680
Sarah, who was in the chat 
earlier, converted her personal 

1606
01:25:34,680 --> 01:25:36,440
site to a Starlight site 
entirely. 

1607
01:25:36,440 --> 01:25:39,360
So it like includes her, her 
like blog notes and everything. 

1608
01:25:40,280 --> 01:25:45,960
Maybe I could bring that I can 
share the if I can probably. 

1609
01:25:46,400 --> 01:25:50,720
If I can just like A blog to use
podcast and everything too, it 

1610
01:25:50,720 --> 01:25:53,960
would be perfect. 
This is this is me not wanting 

1611
01:25:53,960 --> 01:25:56,320
to rewrite and I keep thinking 
about rewriting. 

1612
01:25:59,080 --> 01:26:00,320
Yeah. 
I wonder that like because 

1613
01:26:00,480 --> 01:26:03,320
podcast is like the Rs, it's 
RSS, but it's kind of special 

1614
01:26:03,320 --> 01:26:06,760
RSS, right with the. 
Again, I don't think we do a 

1615
01:26:06,760 --> 01:26:10,640
great job with that special 
piece, but maybe we do the blog.

1616
01:26:10,640 --> 01:26:13,440
It's great. 
So yeah, you're Sarah. 

1617
01:26:15,120 --> 01:26:17,480
Sarah's got a cool, like red 
toned hers. 

1618
01:26:17,480 --> 01:26:19,360
I like that. 
Yeah. 

1619
01:26:19,720 --> 01:26:22,160
Oh yeah, see, Sarah has the 
talks and interviews and stuff 

1620
01:26:22,160 --> 01:26:27,360
just like I need. 
I wonder if she has the guests. 

1621
01:26:27,840 --> 01:26:32,120
I don't see it. 
Interesting. 

1622
01:26:32,120 --> 01:26:36,840
So oops, totally clicked wrong. 
There we go. 

1623
01:26:37,600 --> 01:26:40,560
Well, I think we're, we're 
running up on time and I always 

1624
01:26:40,560 --> 01:26:44,360
like to kind of just chat for a 
minute longer. 

1625
01:26:45,000 --> 01:26:47,600
What's what's up next for 
Starlight? 

1626
01:26:47,600 --> 01:26:50,480
What's What's on the road map? 
Nice. 

1627
01:26:51,000 --> 01:26:55,040
Yeah, well, very soon it's going
to be full SSR support. 

1628
01:26:55,040 --> 01:27:00,200
So like we kind of talked to the
top of the show like the Astro 

1629
01:27:00,360 --> 01:27:02,760
has this, like it started as a 
static site generator, but now 

1630
01:27:02,760 --> 01:27:04,960
does all this extra stuff. 
You can have a list on demand 

1631
01:27:04,960 --> 01:27:08,200
rendering, but Starlight, 
because that's the main docs use

1632
01:27:08,200 --> 01:27:11,120
case, kind of focused on the 
static part first, but we're 

1633
01:27:11,120 --> 01:27:15,760
working on shipping the ability 
to integrate it into your SSR 

1634
01:27:15,760 --> 01:27:17,080
site. 
So maybe you have like a SAS or 

1635
01:27:17,080 --> 01:27:18,520
something and you need a dock 
section. 

1636
01:27:18,760 --> 01:27:20,960
Like you could still build all 
that with the Astro tools and 

1637
01:27:20,960 --> 01:27:24,360
SSR and stuff and then plug 
Starlight in is just part of 

1638
01:27:24,360 --> 01:27:26,600
that. 
So Sarah mentioned that in the 

1639
01:27:26,600 --> 01:27:28,120
chat. 
I think she said like, Hey, you 

1640
01:27:28,120 --> 01:27:29,720
can add it to your own like 
existing site. 

1641
01:27:30,400 --> 01:27:34,320
So same basic idea, but but to 
make sure we fully support that 

1642
01:27:34,320 --> 01:27:38,040
for the for SSR, we're working 
on expanding our components. 

1643
01:27:38,280 --> 01:27:42,280
We have like a really nice file 
tree component that we built for

1644
01:27:42,280 --> 01:27:45,880
the asteroid docs that we want 
to make available to everyone 

1645
01:27:50,240 --> 01:27:51,800
with a really nice. 
It has a really nice altering 

1646
01:27:51,800 --> 01:27:53,400
experience. 
You basically just write a 

1647
01:27:53,840 --> 01:27:58,600
bulleted list like an indented 
list. 

1648
01:28:00,760 --> 01:28:08,160
So it turns into a beautiful 
file tree with like icons based 

1649
01:28:08,160 --> 01:28:11,240
on the. 
I think, yeah, unfortunately. 

1650
01:28:11,320 --> 01:28:15,040
We have a bunch of cool 
components that come in. 

1651
01:28:17,040 --> 01:28:20,760
I think Chris is pausing a 
little bit, unfortunately, so 

1652
01:28:21,200 --> 01:28:26,080
hopefully if if he can hear me 
and I don't completely talk over

1653
01:28:26,080 --> 01:28:28,760
him, I'm just going to say thank
you. 

1654
01:28:28,760 --> 01:28:31,200
I appreciate it. 
I love what Astra's doing and 

1655
01:28:31,200 --> 01:28:34,440
and Starlight Chris, sorry, we 
had a couple couple issues come 

1656
01:28:34,440 --> 01:28:36,040
up here on the video side of 
things. 

1657
01:28:36,040 --> 01:28:40,000
But if you can hear me, this is 
thank you and goodbye to 

1658
01:28:40,000 --> 01:28:41,640
everyone. 
Thanks again for joining.

