generated from pyladies/pyladies-blank-github-pages-website-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
novo-site-do-pyladies-sao-carlos.html
174 lines (147 loc) · 7.43 KB
/
novo-site-do-pyladies-sao-carlos.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<meta charset="utf-8">
<title>Novo site do PyLadies São Carlos</title>
<meta name="author" content="PyLadies São Carlos">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Novo site do PyLadies São Carlos written October 22, 2023 in site">
<link rel="canonical" href="/novo-site-do-pyladies-sao-carlos.html">
<link href="/favicon.png" rel="icon">
<link href="/theme/css/screen.css" media="screen, projection" rel="stylesheet" type="text/css" />
<link href="/theme/css/tomorrow.css" media="screen, projection" rel="stylesheet" type="text/css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.js"></script>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
</head>
<body>
<div class="topnav" id="myTopnav">
<div class="topnav-left">
<a href="https://instagram.com/pyladiessanca"><img src="/theme/images/icons8-instagram-logo-24.png"/></a>
<a href="https://linkedin.com/company/pyladiessanca"><img src="/theme/images/glyphicons_social_17_linked_in.png"/></a>
<a href="mailto:[email protected]"><img src="/theme/images/glyphicons_social_39_e-mail.png"/></a>
<a href="https://github.com/pyladiessanca"><img src="/theme/images/glyphicons_social_21_github.png"/></a>
<a href="https://twitter.com/pyladiessanca"><img src="/theme/images/glyphicons_social_31_twitter.png"/></a>
</div>
<div class="home-icon">
<a href="/">
<img src="/theme/images/home.png"/>
</a>
</div>
<div class="topnav-right">
<a href="/./archives.html">Blog</a>
<a href="/./index.html">Sobre</a>
<a href="/./parcerias.html">Parcerias</a>
</div>
</div>
<div class="home-page">
<div class="hero">
<div class="hero-content">
<img src="/theme/images/header.svg" alt="Logos" width="500" height="500">
</div>
</div>
<div class="home-field">
<div class="home-landing her-row">
<div class="container"> </div>
</div>
<article role="article" class="full-single-article">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<h1>Novo site do PyLadies São Carlos</h1>
<div class="meta">
written <time datetime="2023-10-22T00:00:00-03:00">October 22, 2023</time>
in <span class="categories">
<a href="/tag/site.html">site</a> </span>
</div>
<h2>Motivação</h2>
<p>O site original do PyLadies São Carlos foi criado em 2015, e desde então não havia sido atualizado.
A ideia desse projeto é atualizar o site, tornando-o mais moderno e com uma aparência mais profissional.</p>
<h2>Tecnologias utilizadas</h2>
<h3><a href="https://getpelican.com/">Pelican</a></h3>
<p>Pelican é um gerador de sites estáticos escrito em Python. Ele utiliza o Markdown para escrever os posts e o Jinja2 para os templates.</p>
<h2>Como rodar o projeto</h2>
<ol>
<li>Clone o repositório</li>
</ol>
<div class="highlight"><pre><span></span><code>$<span class="w"> </span>git<span class="w"> </span>clone<span class="w"> </span>https://github.com/pyladiessanca/pyladiessanca.github.io.git
</code></pre></div>
<ol>
<li>Entre na pasta clonada</li>
</ol>
<div class="highlight"><pre><span></span><code>$<span class="w"> </span><span class="nb">cd</span><span class="w"> </span>pyladiessanca.github.io
</code></pre></div>
<ol>
<li>Crie um ambiente virtual</li>
</ol>
<div class="highlight"><pre><span></span><code>$<span class="w"> </span>python<span class="w"> </span>-m<span class="w"> </span>venv<span class="w"> </span>.venv
</code></pre></div>
<ol>
<li>Ative o ambiente virtual</li>
</ol>
<div class="highlight"><pre><span></span><code>$<span class="w"> </span><span class="nb">source</span><span class="w"> </span>.venv/bin/activate
</code></pre></div>
<ol>
<li>Instale as dependências</li>
</ol>
<div class="highlight"><pre><span></span><code>$<span class="w"> </span>python<span class="w"> </span>-m<span class="w"> </span>pip<span class="w"> </span>install<span class="w"> </span>.
</code></pre></div>
<ol>
<li>Rode o servidor</li>
</ol>
<div class="highlight"><pre><span></span><code>$<span class="w"> </span>pelican<span class="w"> </span>--listen
</code></pre></div>
<ol>
<li>Acesse o site em http://localhost:8000</li>
</ol>
<p>Caso crie um arquivo, rode o comando <code>pelican content</code> para gerar o HTML e atualizar o site.</p>
<h2>Como contribuir</h2>
<ol>
<li>Faça um fork do repositório</li>
<li>Crie uma branch para o seu post</li>
</ol>
<div class="highlight"><pre><span></span><code>$<span class="w"> </span>git<span class="w"> </span>checkout<span class="w"> </span>-b<span class="w"> </span>meu-post
</code></pre></div>
<ol>
<li>Escreva o seu post utilizando Markdown e coloque-o na pasta <code>content</code>
Atente-se para utilizar a convenção de nomenclatura <code>AAAA-MM-DD--nome-do-post.md</code></li>
<li>Coloque no começo do seu arquivo as seguintes informações:</li>
</ol>
<div class="highlight"><pre><span></span><code><span class="n">title</span><span class="o">:</span><span class="w"> </span><span class="n">Título</span><span class="w"> </span><span class="k">do</span><span class="w"> </span><span class="n">seu</span><span class="w"> </span><span class="n">post</span>
<span class="n">description</span><span class="o">:</span><span class="w"> </span><span class="n">Descrição</span><span class="w"> </span><span class="k">do</span><span class="w"> </span><span class="n">seu</span><span class="w"> </span><span class="n">post</span>
<span class="n">modified</span><span class="o">:</span><span class="w"> </span><span class="n">AAAA</span><span class="o">-</span><span class="n">MM</span><span class="o">-</span><span class="n">DD</span>
<span class="n">category</span><span class="o">:</span><span class="w"> </span><span class="n">categoria</span>
<span class="n">tags</span><span class="o">:</span><span class="w"> </span><span class="n">tags</span>
</code></pre></div>
<ol>
<li>Faça o commit das suas alterações</li>
</ol>
<div class="highlight"><pre><span></span><code>$<span class="w"> </span>git<span class="w"> </span>commit<span class="w"> </span>-m<span class="w"> </span><span class="s1">'meu post'</span>
</code></pre></div>
<ol>
<li>Faça o push para a sua branch</li>
</ol>
<div class="highlight"><pre><span></span><code>$<span class="w"> </span>git<span class="w"> </span>push<span class="w"> </span>origin<span class="w"> </span>--set-upstream<span class="w"> </span>meu-post
</code></pre></div>
<ol>
<li>Abra um Pull Request no repositório original</li>
</ol>
</div>
</div>
</div>
</article>
</div>
<footer id="footer" class="her-row">
<div class="container">
<div class="row">
<h4>PyLadies São Carlos</h4>
</div>
</div>
</footer>
</body>
</html>