Skip to content

Commit 0796b94

Browse files
fix conflict changelog 1.4.0
1 parent 789d7e2 commit 0796b94

File tree

2 files changed

+49
-29
lines changed

2 files changed

+49
-29
lines changed

docs/builders.rst

Lines changed: 40 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -204,32 +204,45 @@ Format
204204
++++++
205205
206206
.. code-block:: python
207-
208-
{
209-
"extend_test_001": "directives/needextend",
210-
"extend_test_002": "directives/needextend",
211-
212-
"req_arch_001": "directives/needarch",
213-
"req_arch_004": "directives/needarch",
214-
215-
"spec_arch_001": "directives/needarch",
216-
"test_arch_001": "directives/needarch",
217-
"COMP_T_001": "directives/needarch",
218-
"COMP_T_002": "directives/needarch",
219207
220-
"EX_REQ_1": "examples/index",
221-
"EX_REQ_2": "examples/index",
222-
223-
"R_F4722": "examples/index",
224-
"OWN_ID_123": "examples/index",
225-
"IMPL_01": "examples/index",
226-
"T_C3893": "examples/index",
227-
"R_2A9D0": "filter",
228-
"R_22EB2": "filter",
229-
"S_D70B0": "filter",
230-
"S_01A67": "filter",
231-
"T_5CCAA": "filter",
232-
"R_17EB4": "filter",
233-
"req_flow_001": "directives/needflow",
234-
"spec_flow_001": "directives/needflow",
208+
{
209+
"created": "2023-09-25T17:11:03.162346",
210+
"current_version": "1.3",
211+
"project": "Sphinx-Needs",
212+
"versions": {
213+
"1.3": {
214+
"created": "2023-09-25T17:11:03.162329",
215+
"filters": {},
216+
"filters_amount": 0,
217+
"needs": {
218+
"extend_test_001": "directives/needextend",
219+
"extend_test_002": "directives/needextend",
220+
221+
"req_arch_001": "directives/needarch",
222+
"req_arch_004": "directives/needarch",
223+
224+
"spec_arch_001": "directives/needarch",
225+
"test_arch_001": "directives/needarch",
226+
"COMP_T_001": "directives/needarch",
227+
"COMP_T_002": "directives/needarch",
228+
229+
"EX_REQ_1": "examples/index",
230+
"EX_REQ_2": "examples/index",
231+
232+
"R_F4722": "examples/index",
233+
"OWN_ID_123": "examples/index",
234+
"IMPL_01": "examples/index",
235+
"T_C3893": "examples/index",
236+
"R_2A9D0": "filter",
237+
"R_22EB2": "filter",
238+
"S_D70B0": "filter",
239+
"S_01A67": "filter",
240+
"T_5CCAA": "filter",
241+
"R_17EB4": "filter",
242+
"req_flow_001": "directives/needflow",
243+
"spec_flow_001": "directives/needflow",
244+
}
245+
}
246+
}
247+
235248
}

sphinx_needs/templates/permalink.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
const needs_obj = version['needs'];
3030

3131
const id = getParameterByName('id');
32-
var pathname = new URL(window.location.href).pathname;
32+
var pathname = new URL(window.location.href).pathname;
3333

3434
pathname = pathname.substring(0, pathname.lastIndexOf('{{ permalink_file }}'));
3535

@@ -40,7 +40,14 @@
4040
keys.forEach((key, index) => {
4141
if (key === id) {
4242
const need = needs_obj[key];
43-
docname = need['docname'];
43+
if (typeof need === "object"){
44+
// need.json file
45+
docname = need['docname'];
46+
}
47+
else {
48+
// need_lut file only value is docname or external_link
49+
docname = need
50+
}
4451
return;
4552
}
4653
});

0 commit comments

Comments
 (0)