Skip to content

Commit 2048e1d

Browse files
committed
Add password protection to documentation with redirection
1 parent 66c4cc0 commit 2048e1d

File tree

2 files changed

+108
-103
lines changed

2 files changed

+108
-103
lines changed

docs/build/html/home.html

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
<!DOCTYPE html>
2+
<html lang="fr">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Welcome to Laravel Documentation’s documentation! — Documentation laravel_documentation 0.0</title>
7+
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=4f649999">
8+
<link rel="stylesheet" type="text/css" href="_static/alabaster.css?v=039e1c02">
9+
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js?v=ccc581b2"></script>
10+
<script src="_static/doctools.js?v=888ff710"></script>
11+
<script src="_static/sphinx_highlight.js?v=4825356b"></script>
12+
<script src="_static/translations.js?v=d99ca74e"></script>
13+
<link rel="index" title="Index" href="genindex.html">
14+
<link rel="search" title="Recherche" href="search.html">
15+
<link rel="next" title="Installation de Laravel" href="installation.html">
16+
<link rel="stylesheet" href="_static/custom.css" type="text/css">
17+
</head>
18+
<body>
19+
<div class="document">
20+
<div class="documentwrapper">
21+
<div class="bodywrapper">
22+
<div class="body" role="main">
23+
<section id="welcome-to-laravel-documentation-s-documentation">
24+
<h1>Welcome to Laravel Documentation’s documentation!<a class="headerlink" href="#welcome-to-laravel-documentation-s-documentation" title="Lien permanent vers cette rubrique"></a></h1>
25+
<p>Contents:</p>
26+
<div class="toctree-wrapper compound">
27+
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
28+
<ul>
29+
<li class="toctree-l1"><a class="reference internal" href="installation.html">Installation de Laravel</a>
30+
<ul>
31+
<li class="toctree-l2"><a class="reference internal" href="installation.html#introduction">Introduction</a></li>
32+
<li class="toctree-l2"><a class="reference internal" href="installation.html#pre-requis">Pré-requis</a></li>
33+
<li class="toctree-l2"><a class="reference internal" href="installation.html#installation">Installation</a></li>
34+
<li class="toctree-l2"><a class="reference internal" href="installation.html#verification">Vérification</a></li>
35+
</ul>
36+
</li>
37+
</ul>
38+
</div>
39+
</section>
40+
<section id="indices-and-tables">
41+
<h1>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Lien permanent vers cette rubrique"></a></h1>
42+
<ul class="simple">
43+
<li><p><a class="reference internal" href="genindex.html"><span class="std std-ref">Index</span></a></p></li>
44+
<li><p><a class="reference internal" href="py-modindex.html"><span class="std std-ref">Index du module</span></a></p></li>
45+
<li><p><a class="reference internal" href="search.html"><span class="std std-ref">Page de recherche</span></a></p></li>
46+
</ul>
47+
</section>
48+
</div>
49+
</div>
50+
</div>
51+
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
52+
<div class="sphinxsidebarwrapper">
53+
<h1 class="logo"><a href="#">laravel_documentation</a></h1>
54+
<h3>Navigation</h3>
55+
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
56+
<ul>
57+
<li class="toctree-l1"><a class="reference internal" href="installation.html">Installation de Laravel</a></li>
58+
</ul>
59+
<div class="relations">
60+
<h3>Related Topics</h3>
61+
<ul>
62+
<li><a href="#">Documentation overview</a>
63+
<ul>
64+
<li>Next: <a href="installation.html" title="Chapitre suivant">Installation de Laravel</a></li>
65+
</ul>
66+
</li>
67+
</ul>
68+
</div>
69+
<div id="searchbox" style="display: none" role="search">
70+
<h3 id="searchlabel">Recherche rapide</h3>
71+
<div class="searchformwrapper">
72+
<form class="search" action="search.html" method="get">
73+
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
74+
<input type="submit" value="Go">
75+
</form>
76+
</div>
77+
</div>
78+
<script>document.getElementById('searchbox').style.display = "block"</script>
79+
</div>
80+
</div>
81+
<div class="clearer"></div>
82+
</div>
83+
<div class="footer">
84+
&copy;2024, Hocine YAKOUBI.
85+
|
86+
Powered by <a href="http://sphinx-doc.org/">Sphinx 7.1.2</a>
87+
&amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.13</a>
88+
|
89+
<a href="_sources/index.rst.txt" rel="nofollow">Page source</a>
90+
</div>
91+
</body>
92+
</html>

docs/build/html/index.html

Lines changed: 16 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -1,110 +1,23 @@
11
<!DOCTYPE html>
22
<html lang="fr">
33
<head>
4-
<meta charset="utf-8" />
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1" />
7-
8-
<title>Welcome to Laravel Documentation’s documentation! &#8212; Documentation laravel_documentation 0.0</title>
9-
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=4f649999" />
10-
<link rel="stylesheet" type="text/css" href="_static/alabaster.css?v=039e1c02" />
11-
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js?v=ccc581b2"></script>
12-
<script src="_static/doctools.js?v=888ff710"></script>
13-
<script src="_static/sphinx_highlight.js?v=4825356b"></script>
14-
<script src="_static/translations.js?v=d99ca74e"></script>
15-
<link rel="index" title="Index" href="genindex.html" />
16-
<link rel="search" title="Recherche" href="search.html" />
17-
<link rel="next" title="Installation de Laravel" href="installation.html" />
18-
<link rel="stylesheet" href="_static/custom.css" type="text/css" />
19-
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Protected Documentation</title>
7+
<script type="text/javascript">
8+
function checkPassword() {
9+
var password = document.getElementById("password").value;
10+
if (password === "yourpassword") { // Remplacez "yourpassword" par votre mot de passe
11+
window.location.href = "home.html";
12+
} else {
13+
alert("Incorrect Password");
14+
}
15+
}
16+
</script>
2017
</head>
2118
<body>
22-
23-
<script type="text/javascript">
24-
(function() {
25-
var password = "yourpassword"; // Changez "yourpassword" par votre mot de passe
26-
var passcode = prompt("Please enter your password:");
27-
while (passcode !== password) {
28-
alert("Incorrect Password");
29-
passcode = prompt("Please enter your password:");
30-
}
31-
alert('Welcome to the documentation!');
32-
})();
33-
</script>
34-
35-
<div class="document">
36-
<div class="documentwrapper">
37-
<div class="bodywrapper">
38-
<div class="body" role="main">
39-
<section id="welcome-to-laravel-documentation-s-documentation">
40-
<h1>Welcome to Laravel Documentation’s documentation!<a class="headerlink" href="#welcome-to-laravel-documentation-s-documentation" title="Lien permanent vers cette rubrique"></a></h1>
41-
<p>Contents:</p>
42-
<div class="toctree-wrapper compound">
43-
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
44-
<ul>
45-
<li class="toctree-l1"><a class="reference internal" href="installation.html">Installation de Laravel</a>
46-
<ul>
47-
<li class="toctree-l2"><a class="reference internal" href="installation.html#introduction">Introduction</a></li>
48-
<li class="toctree-l2"><a class="reference internal" href="installation.html#pre-requis">Pré-requis</a></li>
49-
<li class="toctree-l2"><a class="reference internal" href="installation.html#installation">Installation</a></li>
50-
<li class="toctree-l2"><a class="reference internal" href="installation.html#verification">Vérification</a></li>
51-
</ul>
52-
</li>
53-
</ul>
54-
</div>
55-
</section>
56-
<section id="indices-and-tables">
57-
<h1>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Lien permanent vers cette rubrique"></a></h1>
58-
<ul class="simple">
59-
<li><p><a class="reference internal" href="genindex.html"><span class="std std-ref">Index</span></a></p></li>
60-
<li><p><a class="reference internal" href="py-modindex.html"><span class="std std-ref">Index du module</span></a></p></li>
61-
<li><p><a class="reference internal" href="search.html"><span class="std std-ref">Page de recherche</span></a></p></li>
62-
</ul>
63-
</section>
64-
</div>
65-
</div>
66-
</div>
67-
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
68-
<div class="sphinxsidebarwrapper">
69-
<h1 class="logo"><a href="#">laravel_documentation</a></h1>
70-
71-
<h3>Navigation</h3>
72-
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
73-
<ul>
74-
<li class="toctree-l1"><a class="reference internal" href="installation.html">Installation de Laravel</a></li>
75-
</ul>
76-
77-
<div class="relations">
78-
<h3>Related Topics</h3>
79-
<ul>
80-
<li><a href="#">Documentation overview</a>
81-
<ul>
82-
<li>Next: <a href="installation.html" title="Chapitre suivant">Installation de Laravel</a></li>
83-
</ul>
84-
</li>
85-
</ul>
86-
</div>
87-
<div id="searchbox" style="display: none" role="search">
88-
<h3 id="searchlabel">Recherche rapide</h3>
89-
<div class="searchformwrapper">
90-
<form class="search" action="search.html" method="get">
91-
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" />
92-
<input type="submit" value="Go" />
93-
</form>
94-
</div>
95-
</div>
96-
<script>document.getElementById('searchbox').style.display = "block"</script>
97-
</div>
98-
</div>
99-
<div class="clearer"></div>
100-
</div>
101-
<div class="footer">
102-
&copy;2024, Hocine YAKOUBI.
103-
|
104-
Powered by <a href="http://sphinx-doc.org/">Sphinx 7.1.2</a>
105-
&amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.13</a>
106-
|
107-
<a href="_sources/index.rst.txt" rel="nofollow">Page source</a>
108-
</div>
19+
<h1>Please Enter Password to Access the Documentation</h1>
20+
<input type="password" id="password">
21+
<button onclick="checkPassword()">Submit</button>
10922
</body>
11023
</html>

0 commit comments

Comments
 (0)