Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
anamanica committed Aug 16, 2024
1 parent 56e626f commit 88d7de6
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/source/data-access-api/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
.. _data-access-api:

.. raw:: html

<div id="embedded-readme"></div>

<script>
fetch('https://raw.githubusercontent.com/IMAP-Science-Operations-Center/imap-data-access/main/README.md')
.then(response => response.text())
.then(text => {
// Define the header you want to extract
const header = '## File Validation';
// Use a regular expression to extract the section under the specified header
const regex = new RegExp(`${header}[^#]*`, 'g');
const match = text.match(regex);
if (match) {
// Display the matched content under the header
document.getElementById('embedded-readme').innerHTML = `<pre>${match[0]}</pre>`;
} else {
document.getElementById('embedded-readme').innerHTML = `<p>Header not found</p>`;
}
});
</script>

Data Access API
===============

Expand Down

0 comments on commit 88d7de6

Please sign in to comment.