Skip to content

Commit

Permalink
Add static files for GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelosinnerworkings committed Jun 21, 2024
1 parent 4f90675 commit 08301cd
Show file tree
Hide file tree
Showing 48 changed files with 8,938 additions and 2 deletions.
21 changes: 21 additions & 0 deletions documentation/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM python:3.10-slim

WORKDIR /usr/src/app

COPY . .

RUN pip install mkdocs

EXPOSE 8000

CMD ["mkdocs", "serve", "-a", "0.0.0.0:8000"]

# Para rodar o site localmente, sem container, basta instalar o MkDocs
# via pip/Python
# Em seguida, rodar neste diretório: mkdocs serve

# Para efetuar o build com container Docker:
# docker compose up --build

# Para gerar os arquivos estáticos necessários para o GitHub Pages:
# docker compose run --rm mkdocs mkdocs build
18 changes: 18 additions & 0 deletions documentation/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: '3.8'

services:
mkdocs:
image: python:3.10-slim
container_name: mkdocs-site
working_dir: /usr/src/app
volumes:
- .:/usr/src/app
ports:
- "8000:8000"
command: mkdocs serve -a 0.0.0.0:8000
build:
context: .
dockerfile: Dockerfile
dns:
- 1.1.1.1
- 1.0.0.1
Empty file removed documentation/docs/estrutura.md
Empty file.
3 changes: 3 additions & 0 deletions documentation/docs/faq.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
## FAQ e problemas frequentes

Nesta seção, você encontrará perguntas e respostas comuns e solução de problemas mais frequentes na utilização do Ro-DOU.

Esta seção ainda está em desenvolvimento e será disponibilizada em breve.
2 changes: 0 additions & 2 deletions documentation/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@ Neste site, você encontrará informações sobre como usar o Ro-DOU e quais fun

O Ro-DOU é uma solução desenvolvida pela Secretaria de Gestão e Inovação do [Ministério da Gestão e da Inovação em Serviços Públicos](https://www.gov.br/gestao/pt-br).

Confira o histórico de alterações do Ro-DOU aqui: [CHANGELOG.md](CHANGELOG.md).


1 change: 1 addition & 0 deletions documentation/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ nav:
- Como utilizar: utilizacao.md
- Como funciona: funcionamento.md
- Como contribuir: contribuicoes.md
- FAQ: faq.md
- Oficinas e mídias: midias.md
- Links relevantes: links.md
- Contato: contato.md
Expand Down
141 changes: 141 additions & 0 deletions documentation/site/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="/img/favicon.ico" />
<title>Ro-DOU - ferramenta de clipping dos diários oficiais</title>
<link rel="stylesheet" href="/css/theme.css" />
<link rel="stylesheet" href="/css/theme_extra.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css" />

<!--[if lt IE 9]>
<script src="/js/html5shiv.min.js"></script>
<![endif]-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
</head>

<body class="wy-body-for-nav" role="document">

<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href="/." class="icon icon-home"> Ro-DOU - ferramenta de clipping dos diários oficiais
</a><div role="search">
<form id ="rtd-search-form" class="wy-form" action="//search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" title="Type search term here" />
</form>
</div>
</div>

<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul>
<li class="toctree-l1"><a class="reference internal" href="/.">Página Inicial</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="/rodou/">O que é Ro-DOU?</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="/utilizacao/">Como utilizar</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="/funcionamento/">Como funciona</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="/contribuicoes/">Como contribuir</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="/faq/">FAQ</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="/midias/">Oficinas e mídias</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="/links/">Links relevantes</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="/contato/">Contato</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="/changelog/">Changelog</a>
</li>
</ul>
</div>
</div>
</nav>

<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="/.">Ro-DOU - ferramenta de clipping dos diários oficiais</a>

</nav>
<div class="wy-nav-content">
<div class="rst-content"><div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="/." class="icon icon-home" aria-label="Docs"></a></li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div class="section" itemprop="articleBody">


<h1 id="404-page-not-found">404</h1>

<p><strong>Page not found</strong></p>


</div>
</div><footer>

<hr/>

<div role="contentinfo">
<!-- Copyright etc -->
</div>

Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>

</div>
</div>

</section>

</div>

<div class="rst-versions" role="note" aria-label="Versions">
<span class="rst-current-version" data-toggle="rst-current-version">



</span>
</div>
<script src="/js/jquery-3.6.0.min.js"></script>
<script>var base_url = "/";</script>
<script src="/js/theme_extra.js"></script>
<script src="/js/theme.js"></script>
<script src="/search/main.js"></script>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>

</body>
</html>
161 changes: 161 additions & 0 deletions documentation/site/changelog/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="../img/favicon.ico" />
<title>Changelog - Ro-DOU - ferramenta de clipping dos diários oficiais</title>
<link rel="stylesheet" href="../css/theme.css" />
<link rel="stylesheet" href="../css/theme_extra.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/github.min.css" />

<script>
// Current page data
var mkdocs_page_name = "Changelog";
var mkdocs_page_input_path = "changelog.md";
var mkdocs_page_url = null;
</script>

<!--[if lt IE 9]>
<script src="../js/html5shiv.min.js"></script>
<![endif]-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
</head>

<body class="wy-body-for-nav" role="document">

<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href=".." class="icon icon-home"> Ro-DOU - ferramenta de clipping dos diários oficiais
</a><div role="search">
<form id ="rtd-search-form" class="wy-form" action="../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" title="Type search term here" />
</form>
</div>
</div>

<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul>
<li class="toctree-l1"><a class="reference internal" href="..">Página Inicial</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../rodou/">O que é Ro-DOU?</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../utilizacao/">Como utilizar</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../funcionamento/">Como funciona</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../contribuicoes/">Como contribuir</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../faq/">FAQ</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../midias/">Oficinas e mídias</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../links/">Links relevantes</a>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../contato/">Contato</a>
</li>
</ul>
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal current" href="#">Changelog</a>
<ul class="current">
</ul>
</li>
</ul>
</div>
</div>
</nav>

<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="..">Ro-DOU - ferramenta de clipping dos diários oficiais</a>

</nav>
<div class="wy-nav-content">
<div class="rst-content"><div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href=".." class="icon icon-home" aria-label="Docs"></a></li>
<li class="breadcrumb-item active">Changelog</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div class="section" itemprop="articleBody">

<h2 id="changelog">Changelog</h2>
<p>As principais mudanças realizadas no repositório do <a href="https://github.com/gestaogovbr/Ro-dou">Ro-ou</a> estão documentadas aqui a partir de 31/08/2023.</p>
<h2 id="010-2023-08-31">[0.1.0] - 2023-08-31</h2>
<p>Altera a forma de encontrar os arquivos de configuração das DAGs (<code>dag_confs/*.yml</code>).</p>
<p>Antes considerava que a pasta <code>dag_confs/</code> estava na mesma raiz que os arquivos do ro-dou em <code>./src</code>. Agora o caminho da(s) pasta(s) deve ser informado pela variável de ambiente <code>RO_DOU__DAG_CONF_DIR</code> e separado por <code>:</code> quando mais de um.</p>
<p><strong>Exemplo:</strong></p>
<p>As pastas <code>/opt/airflow/dags/repo1/dag_confs</code> e <code>/opt/airflow/dags/repo2/dag_confs</code> possuem arquivos de configuração (yaml) para geração das DAGs do rodou. A variável de ambiente <code>RO_DOU__DAG_CONF_DIR</code> deve ser atribuída assim:</p>
<pre><code class="language-shell">RO_DOU__DAG_CONF_DIR=/opt/airflow/dags/repo1/dag_confs:/opt/airflow/dags/repo2/dag_confs
</code></pre>
<p>Esta alteração permite que os arquivos de configuração das DAGs (<code>dag_confs/*.yml</code>) estejam em qualquer pasta da máquina ou container.</p>

</div>
</div><footer>
<div class="rst-footer-buttons" role="navigation" aria-label="Footer Navigation">
<a href="../contato/" class="btn btn-neutral float-left" title="Contato"><span class="icon icon-circle-arrow-left"></span> Previous</a>
</div>

<hr/>

<div role="contentinfo">
<!-- Copyright etc -->
</div>

Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>

</div>
</div>

</section>

</div>

<div class="rst-versions" role="note" aria-label="Versions">
<span class="rst-current-version" data-toggle="rst-current-version">


<span><a href="../contato/" style="color: #fcfcfc">&laquo; Previous</a></span>


</span>
</div>
<script src="../js/jquery-3.6.0.min.js"></script>
<script>var base_url = "..";</script>
<script src="../js/theme_extra.js"></script>
<script src="../js/theme.js"></script>
<script src="../search/main.js"></script>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>

</body>
</html>
Loading

0 comments on commit 08301cd

Please sign in to comment.