Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
Binary file modified DevDocsHub/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file modified DevDocsHub/__pycache__/settings.cpython-311.pyc
Binary file not shown.
Binary file modified DevDocsHub/__pycache__/urls.cpython-311.pyc
Binary file not shown.
Binary file modified DevDocsHub/__pycache__/wsgi.cpython-311.pyc
Binary file not shown.
1 change: 1 addition & 0 deletions DevDocsHub/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
# ]

from django.urls import include, path
from django.contrib import admin

urlpatterns = [
path('', include('Docs.urls')),
Expand Down
Binary file modified Docs/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file modified Docs/__pycache__/admin.cpython-311.pyc
Binary file not shown.
Binary file modified Docs/__pycache__/apps.cpython-311.pyc
Binary file not shown.
Binary file modified Docs/__pycache__/models.cpython-311.pyc
Binary file not shown.
Binary file modified Docs/__pycache__/urls.cpython-311.pyc
Binary file not shown.
Binary file modified Docs/__pycache__/views.cpython-311.pyc
Binary file not shown.
Binary file modified Docs/migrations/__pycache__/0001_initial.cpython-311.pyc
Binary file not shown.
Binary file modified Docs/migrations/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
126 changes: 126 additions & 0 deletions Docs/templates/Add_documentation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Submit Document</title>
<style>

body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #f0f8ff;
margin: 0;
}


.form-container {
background-color: white;
padding: 25px;
border-radius: 15px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
width: 600px;
transition: box-shadow 0.3s ease;
}

.form-container:hover {
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

h1 {
color: #1e90ff;
text-align: center;
}

label {
font-size: 1.1em;
color: #333;
}


input, select, textarea {
width: 100%;
padding: 12px;
margin: 10px 0 20px 0;
border: 2px solid #1e90ff;
border-radius: 8px;
font-size: 1em;
box-sizing: border-box;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus, textarea:focus {
outline: none;
border-color: #4682b4;
box-shadow: 0 0 5px rgba(70, 130, 180, 0.5);
}


input:hover, select:hover, textarea:hover {
border-color: #4682b4;
box-shadow: 0 0 8px rgba(70, 130, 180, 0.3);
}

button {
width: 100%;
background-color: #1e90ff;
color: white;
padding: 12px;
border: none;
border-radius: 8px;
font-size: 1.1em;
cursor: pointer;
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
background-color: #4682b4;
box-shadow: 0 4px 8px rgba(70, 130, 180, 0.3);
}

.message {
text-align: center;
color: #1e90ff;
font-size: 1.2em;
margin-bottom: 20px;
}
</style>
</head>
<body>

<div class="form-container">
<h1>Create Your Own Documentation</h1>
<p class="message">Please fill out the form below about your Documentation</p>
<form action="" method="POST">
{% csrf_token %}
<div>
<label for="language">Language:</label>
<select id="language" name="language" required>
<option value="" disabled selected>Select a language</option>
{% for language in all_language %}
<option value="{{language.name}}">{{language.name}}</option>
{% endfor %}
</select>
</div>
<div>
<label for="doc_title">Document Title:</label>
<input type="text" id="doc_title" name="doc_title" placeholder="Enter documentation title" required>
</div>
<div>
<label for="content">Content:</label>
<textarea id="content" name="content" placeholder="Enter documentation content" rows="4" cols="50" required></textarea>
</div>
<div>
<label for="url">Document URL:</label>
<input type="url" id="url" name="url" placeholder="Enter documentation URL" required>
</div>
<div>
<button type="submit">Create</button>
</div>
</form>
</div>

</body>
</html>
102 changes: 102 additions & 0 deletions Docs/templates/Add_language.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Submit Document</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #f0f8ff;
margin: 0;
}

.form-container {
background-color: white;
padding: 25px;
border-radius: 15px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
width: 500px;
}

h1 {
color: #1e90ff;
text-align: center;
}

label {
font-size: 1.1em;
color: #333;
}


input, textarea {
width: 100%;
padding: 12px;
margin: 10px 0;
border: 2px solid #1e90ff;
border-radius: 8px;
font-size: 1em;
box-sizing: border-box;
}


input:focus, textarea:focus {
border-color: #4682b4;
box-shadow: 0 0 5px rgba(70, 130, 180, 0.5);
}

button {
width: 100%;
background-color: #1e90ff;
color: white;
padding: 12px;
border: none;
border-radius: 8px;
font-size: 1.1em;
cursor: pointer;
}

button:hover {
background-color: #4682b4;
}

.message {
text-align: center;
color: #1e90ff;
font-size: 1.2em;
margin-bottom: 20px;
}

</style>
</head>
<body>

<div class="form-container">
<h1>Add Languages</h1>
<p class="message">Add programming languages</p>
<form action="" method="POST">
{% csrf_token %}
<div>
<label for="name">Language name:</label>
<input type="text" id="name" name="name" class="name" placeholder="Enter Language name" required>
</div>
<div>
<label for="url">Official Website URL:</label>
<input type="url" id="url" name="url" placeholder="Enter Official Website URL" required>
</div>
<div>
<label for="content">Description</label>
<textarea id="content" name="content" placeholder="Enter Description" rows="4" required></textarea>
</div>
<div>
<button type="submit">Add language</button>
</div>
</form>
</div>

</body>
</html>
Loading