Giter Club home page Giter Club logo

cliriculum's People

Contributors

sondalex avatar

Watchers

 avatar

cliriculum's Issues

Sidebar color inconsistency in Firefox

When viewing the PDF (created with chromium print) in firefox, the sidebar (whitesmoke) color is displayed differently than in chromium based pdf viewers or Evince or Acrobat Reader.

More precisely the linear gradient does not follow the same pattern.

KeyError raised when using add_location

In some cases a KeyError is raised by cliriculum.markdown.ParseMd
when using add_location.

Potential cause:

  • The lack of correction of self.heading_index in method add_contact

cliriculum.pdf.chromium_print fails more than before

cliriculum.pdf.chromium_print fails more than before.
After analysis this seems to come from either chromium update or Ubuntu update.

I ran chromium headless print from the command line to verify, it did not work (empty pdf). On the other side, print to pdf from the browser (GUI) works correctly.

execution of workflows

Currently doc gets uploaded on Pull Request, this should not be the case.
However, it should be partially disabled, building the doc on PR could still be useful as a test.

Feature Request

Feature Request:

  • Adding metadata about job application for later use in chrome_print(filename, ...)

Feature request

Add kwargs in some/all deserializers with instance dynamic attribute creation such that they can be easily extended

conftest.py should not be located in repository root

Currently, conftest.py is located in repository root.
As a result pytest scope is aware of cliriculum source directory. As a result tests are run against source and not against installed version. See pytest/fixture for more explanation on scope.

conftest.py should be moved -> tests/conftest.py

pip install from PyPi test server does not work

pip install on PyPi test server does not work

Error:

ERROR: Could not find a version that satisfies the requirement mistletoe (from cliriculum) (from versions: none)
ERROR: No matching distribution found for mistletoe

nth level list misalignment

Currently, nth level list are aligned horizontally with first level.

This should be corrected, however alignment of bullet point from second degree and above level with previous level text is complicated a priori.

Temporary solution for users:

Adding custom css rule to the custom css file (i.e the one specified with --stylesheet):

ul li ul > li {
    padding-left: 1.6em;
}

Note that the value should be adjusted based on browser specificities.

Add location file

Currently there is no support for location information to map to Second level headers by matching ID.

One solution not breaking current implementation:

Add --location pointing towards a file containing location information with keys corresponding to --main file section keys.

If provided insert node ontop of eventual date information.

Use Markdown specification or reduced markdown (bold and italic) for this section with potential font awesome icon addition

Headless print does not work

Chromium headless print does not work correctly, a blank page is generated.

I.e the following command

chromium --headless http://127.0.0.1:8000 --print-to-pdf --disable-gpu

generates a blank page.


Solution:

Setting --virtual-time-budget appropriately, 20000 works good on my setup.

Idea of code refactoring

By looking how to render HTMLBlock in mistletoe, I came across miyuchina/mistletoe#106

Maybe I should refactor the code such that the parser parses in the context of
the cliriculum.renderers.Renderer (without calling the render method).
This avoids fiddling with mistletoe.base_token._token_types (used by mistletoe.Document)

cli --overwrite=1 does not overwrite every files

command line flag --overwrite set 1 does not overwrite every files.
Indeed after I installed new version with updated style and ran overwrite, style did not get updated in the resume directory.

chromium headless print is not always succesful

Currently, sometimes pdf conversion creates a pdf with no content. Although the flag --virtual-time-budget is set to 20000, making this scenario quite rare there is no insurance mechanism to warn the user when such case happen.

A warning parameter could be added to chrome_print which would use under the hood pypdf, and load it dynamically rather to avoid adding a new dependency as requirement.

Another methodology could just parse the raw pdf and search for

<</Length1 123
/Filter /FlateDecode
/Length 126>> stream

...some content...
endstream

patterns, if only one of zero length then the document is empty -> raise warning

contact null value renders to None

Currently, if contact key "profession" is associated with value null, the html renderer renders None instead of empty string.
This behaviour is potentially generalized to other keys

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.